Skip to content

Commit e85dd8c

Browse files
committed
#2375: scripts: add lb_iterations to JSON data file schema validator
1 parent 6190033 commit e85dd8c

File tree

1 file changed

+59
-1
lines changed

1 file changed

+59
-1
lines changed

scripts/LBDatafile_schema.py

+59-1
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,65 @@ def validate_ids(field):
9393
'bytes': float
9494
}
9595
],
96-
Optional('user_defined'): dict
96+
Optional('user_defined'): dict,
97+
Optional('lb_iterations'): [
98+
{
99+
'id': int,
100+
'tasks': [
101+
{
102+
'entity': And({
103+
Optional('collection_id'): int,
104+
'home': int,
105+
Optional('id'): int,
106+
Optional('seq_id'): int,
107+
Optional('index'): [int],
108+
'type': str,
109+
'migratable': bool,
110+
Optional('objgroup_id'): int
111+
}, validate_ids),
112+
'node': int,
113+
'resource': str,
114+
Optional('subphases'): [
115+
{
116+
'id': int,
117+
'time': float,
118+
}
119+
],
120+
'time': float,
121+
Optional('user_defined'): dict,
122+
Optional('attributes'): dict
123+
},
124+
],
125+
Optional('communications'): [
126+
{
127+
'type': str,
128+
'to': And({
129+
'type': str,
130+
Optional('id'): int,
131+
Optional('seq_id'): int,
132+
Optional('home'): int,
133+
Optional('collection_id'): int,
134+
Optional('migratable'): bool,
135+
Optional('index'): [int],
136+
Optional('objgroup_id'): int,
137+
}, validate_ids),
138+
'messages': int,
139+
'from': And({
140+
'type': str,
141+
Optional('id'): int,
142+
Optional('seq_id'): int,
143+
Optional('home'): int,
144+
Optional('collection_id'): int,
145+
Optional('migratable'): bool,
146+
Optional('index'): [int],
147+
Optional('objgroup_id'): int,
148+
}, validate_ids),
149+
'bytes': float
150+
}
151+
],
152+
Optional('user_defined'): dict
153+
}
154+
]
97155
},
98156
]
99157
}

0 commit comments

Comments
 (0)