From 0001904045348e356927e3f265f18e0898908d49 Mon Sep 17 00:00:00 2001 From: Arkadiusz Szczepkowicz Date: Fri, 22 Dec 2023 17:07:55 +0100 Subject: [PATCH] #2229: Add attributes field for rank and object --- scripts/JSON_data_files_validator.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) 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,