Skip to content

Commit

Permalink
#2229: Add attributes field for rank and object
Browse files Browse the repository at this point in the history
  • Loading branch information
thearusable committed Dec 22, 2023
1 parent 13b1920 commit 0001904
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions scripts/JSON_data_files_validator.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
import json

import brotli
from schema import And, Optional, Schema
from schema import And, Optional, Schema, Regex

Check warning on line 17 in scripts/JSON_data_files_validator.py

View check run for this annotation

Codacy Production / Codacy Static Code Analysis

scripts/JSON_data_files_validator.py#L17

Unused Regex imported from schema


def exc_handler(exception_type, exception, traceback):
Expand Down Expand Up @@ -64,6 +64,8 @@ def _get_valid_schema(self) -> Schema:
'range': [[int]],
},
},
Optional('attributes'): dict
# Optional(Regex(r'^.*')): object
},
'phases': [
{
Expand All @@ -77,7 +79,8 @@ def _get_valid_schema(self) -> Schema:
Optional('index'): [int],
'type': str,
'migratable': bool,
Optional('objgroup_id'): int
Optional('objgroup_id'): int,
Optional('attributes'): dict
},
'node': int,
'resource': str,
Expand Down

0 comments on commit 0001904

Please sign in to comment.