Skip to content

Commit e746d45

Browse files
committed
Update conformance schema to make catalog fields optional in root and move validation to anyOf variants
1 parent f4a73f6 commit e746d45

1 file changed

Lines changed: 29 additions & 10 deletions

File tree

agent_sdks/conformance/conformance_schema.json

Lines changed: 29 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -64,10 +64,9 @@
6464
}
6565
},
6666
"required": [
67-
"version",
68-
"s2c_schema",
69-
"catalog_schema"
67+
"version"
7068
]
69+
7170
},
7271
"process_chunk": {
7372
"type": "array",
@@ -177,20 +176,39 @@
177176
}
178177
},
179178
"required": [
180-
"name",
181-
"catalog"
179+
"name"
182180
],
183-
"oneOf": [
181+
"anyOf": [
184182
{
183+
185184
"required": [
186-
"process_chunk"
187-
]
185+
"process_chunk",
186+
"catalog"
187+
],
188+
"properties": {
189+
"catalog": {
190+
"required": [
191+
"s2c_schema",
192+
"catalog_schema"
193+
]
194+
}
195+
}
188196
},
189197
{
190198
"required": [
191-
"validate"
192-
]
199+
"validate",
200+
"catalog"
201+
],
202+
"properties": {
203+
"catalog": {
204+
"required": [
205+
"s2c_schema",
206+
"catalog_schema"
207+
]
208+
}
209+
}
193210
},
211+
194212
{
195213
"required": [
196214
"action"
@@ -214,5 +232,6 @@
214232
]
215233
}
216234
]
235+
217236
}
218237
}

0 commit comments

Comments
 (0)