diff --git a/scripts/JSON_data_files_validator.py b/scripts/JSON_data_files_validator.py index bacf268dde..ee21c1af72 100644 --- a/scripts/JSON_data_files_validator.py +++ b/scripts/JSON_data_files_validator.py @@ -14,7 +14,7 @@ import json import brotli -from schema import And, Optional, Schema +from schema import And, Optional, Schema, Regex def exc_handler(exception_type, exception, traceback): @@ -64,6 +64,8 @@ def _get_valid_schema(self) -> Schema: 'range': [[int]], }, }, + Optional('attributes'): dict + # Optional(Regex(r'^.*')): object }, 'phases': [ { @@ -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,