|
97 | 97 | "allOf": [ |
98 | 98 | { |
99 | 99 | "oneOf": [ |
100 | | - { "$ref": "#/$defs/ProcessChunkTest" }, |
101 | | - { "$ref": "#/$defs/ValidateTest" }, |
102 | | - { "$ref": "#/$defs/PruneTest" }, |
103 | | - { "$ref": "#/$defs/RenderTest" }, |
104 | | - { "$ref": "#/$defs/LoadTest" }, |
105 | | - { "$ref": "#/$defs/RemoveStrictValidationTest" }, |
106 | | - { "$ref": "#/$defs/ParseFullTest" }, |
107 | | - { "$ref": "#/$defs/FixPayloadTest" }, |
108 | | - { "$ref": "#/$defs/HasPartsTest" }, |
109 | | - { "$ref": "#/$defs/SelectCatalogTest" }, |
110 | | - { "$ref": "#/$defs/GeneratePromptTest" }, |
111 | | - { "$ref": "#/$defs/LoadCatalogTest" }, |
112 | | - { "$ref": "#/$defs/ConvertEventTest" }, |
113 | | - { "$ref": "#/$defs/CreateA2uiPartTest" }, |
114 | | - { "$ref": "#/$defs/IsA2uiPartTest" }, |
115 | | - { "$ref": "#/$defs/TryActivateExtensionTest" }, |
116 | | - { "$ref": "#/$defs/HandleRpcTest" }, |
117 | | - { "$ref": "#/$defs/ExecuteToolTest" }, |
118 | | - { "$ref": "#/$defs/GetExtensionTest" }, |
119 | | - { "$ref": "#/$defs/TryActivateTest" }, |
120 | | - { "$ref": "#/$defs/SelectNewestTest" } |
| 100 | + {"$ref": "#/$defs/ProcessChunkTest"}, |
| 101 | + {"$ref": "#/$defs/ValidateTest"}, |
| 102 | + {"$ref": "#/$defs/PruneTest"}, |
| 103 | + {"$ref": "#/$defs/RenderTest"}, |
| 104 | + {"$ref": "#/$defs/LoadTest"}, |
| 105 | + {"$ref": "#/$defs/RemoveStrictValidationTest"}, |
| 106 | + {"$ref": "#/$defs/ParseFullTest"}, |
| 107 | + {"$ref": "#/$defs/FixPayloadTest"}, |
| 108 | + {"$ref": "#/$defs/HasPartsTest"}, |
| 109 | + {"$ref": "#/$defs/SelectCatalogTest"}, |
| 110 | + {"$ref": "#/$defs/GeneratePromptTest"}, |
| 111 | + {"$ref": "#/$defs/LoadCatalogTest"}, |
| 112 | + {"$ref": "#/$defs/ConvertEventTest"}, |
| 113 | + {"$ref": "#/$defs/CreateA2uiPartTest"}, |
| 114 | + {"$ref": "#/$defs/IsA2uiPartTest"}, |
| 115 | + {"$ref": "#/$defs/TryActivateExtensionTest"}, |
| 116 | + {"$ref": "#/$defs/HandleRpcTest"}, |
| 117 | + {"$ref": "#/$defs/ExecuteToolTest"}, |
| 118 | + {"$ref": "#/$defs/GetExtensionTest"}, |
| 119 | + {"$ref": "#/$defs/TryActivateTest"}, |
| 120 | + {"$ref": "#/$defs/SelectNewestTest"} |
121 | 121 | ] |
122 | 122 | } |
123 | 123 | ] |
|
126 | 126 | "ProcessChunkTest": { |
127 | 127 | "type": "object", |
128 | 128 | "properties": { |
129 | | - "action": { "const": "process_chunk" }, |
| 129 | + "action": {"const": "process_chunk"}, |
130 | 130 | "steps": { |
131 | 131 | "type": "array", |
132 | 132 | "description": "Steps for parser tests.", |
|
177 | 177 | "ValidateTest": { |
178 | 178 | "type": "object", |
179 | 179 | "properties": { |
180 | | - "action": { "const": "validate" } |
| 180 | + "action": {"const": "validate"} |
181 | 181 | }, |
182 | 182 | "required": ["action"], |
183 | 183 | "oneOf": [ |
|
190 | 190 | "type": "object", |
191 | 191 | "properties": { |
192 | 192 | "payload": { |
193 | | - "oneOf": [ |
194 | | - { "type": "object" }, |
195 | | - { "type": "array", "items": { "type": "object" } } |
196 | | - ], |
| 193 | + "oneOf": [{"type": "object"}, {"type": "array", "items": {"type": "object"}}], |
197 | 194 | "description": "Payload to validate (single message or list of messages)." |
198 | 195 | }, |
199 | 196 | "expect_error": { |
|
210 | 207 | { |
211 | 208 | "properties": { |
212 | 209 | "payload": { |
213 | | - "oneOf": [{ "type": "object" }, { "type": "array", "items": { "type": "object" } }], |
| 210 | + "oneOf": [{"type": "object"}, {"type": "array", "items": {"type": "object"}}], |
214 | 211 | "description": "Payload to validate (single message or list of messages)." |
215 | 212 | }, |
216 | 213 | "expect_error": { |
|
225 | 222 | "PruneTest": { |
226 | 223 | "type": "object", |
227 | 224 | "properties": { |
228 | | - "action": { "const": "prune" }, |
| 225 | + "action": {"const": "prune"}, |
229 | 226 | "args": { |
230 | 227 | "type": "object", |
231 | 228 | "properties": { |
232 | | - "allowed_components": { "type": "array", "items": { "type": "string" } }, |
233 | | - "allowed_messages": { "type": "array", "items": { "type": "string" } } |
| 229 | + "allowed_components": {"type": "array", "items": {"type": "string"}}, |
| 230 | + "allowed_messages": {"type": "array", "items": {"type": "string"}} |
234 | 231 | } |
235 | 232 | }, |
236 | | - "expect": { "type": "object" } |
| 233 | + "expect": {"type": "object"} |
237 | 234 | }, |
238 | 235 | "required": ["args", "expect"] |
239 | 236 | }, |
240 | 237 | "RenderTest": { |
241 | 238 | "type": "object", |
242 | 239 | "properties": { |
243 | | - "action": { "const": "render" }, |
244 | | - "expect_output": { "type": "string" } |
| 240 | + "action": {"const": "render"}, |
| 241 | + "expect_output": {"type": "string"} |
245 | 242 | }, |
246 | 243 | "required": ["expect_output"] |
247 | 244 | }, |
248 | 245 | "LoadTest": { |
249 | 246 | "type": "object", |
250 | 247 | "properties": { |
251 | | - "action": { "const": "load" }, |
| 248 | + "action": {"const": "load"}, |
252 | 249 | "args": { |
253 | 250 | "type": "object", |
254 | 251 | "properties": { |
255 | | - "path": { "type": ["string", "null"] }, |
256 | | - "validate": { "type": "boolean" } |
| 252 | + "path": {"type": ["string", "null"]}, |
| 253 | + "validate": {"type": "boolean"} |
257 | 254 | }, |
258 | 255 | "required": ["path"] |
259 | 256 | }, |
260 | | - "expect_output": { "type": "string" }, |
261 | | - "expect_error": { "type": "string" } |
| 257 | + "expect_output": {"type": "string"}, |
| 258 | + "expect_error": {"type": "string"} |
262 | 259 | }, |
263 | 260 | "required": ["args"] |
264 | 261 | }, |
265 | 262 | "RemoveStrictValidationTest": { |
266 | 263 | "type": "object", |
267 | 264 | "properties": { |
268 | | - "action": { "const": "remove_strict_validation" }, |
| 265 | + "action": {"const": "remove_strict_validation"}, |
269 | 266 | "args": { |
270 | 267 | "type": "object", |
271 | 268 | "properties": { |
272 | | - "schema": { "type": "object" } |
| 269 | + "schema": {"type": "object"} |
273 | 270 | }, |
274 | 271 | "required": ["schema"] |
275 | 272 | }, |
276 | 273 | "expect": { |
277 | 274 | "type": "object", |
278 | 275 | "properties": { |
279 | | - "schema": { "type": "object" } |
| 276 | + "schema": {"type": "object"} |
280 | 277 | }, |
281 | 278 | "required": ["schema"] |
282 | 279 | } |
|
286 | 283 | "ParseFullTest": { |
287 | 284 | "type": "object", |
288 | 285 | "properties": { |
289 | | - "action": { "const": "parse_full" }, |
290 | | - "input": { "type": "string" }, |
291 | | - "expect": { "type": "array" }, |
292 | | - "expect_error": { "type": "string" } |
| 286 | + "action": {"const": "parse_full"}, |
| 287 | + "input": {"type": "string"}, |
| 288 | + "expect": {"type": "array"}, |
| 289 | + "expect_error": {"type": "string"} |
293 | 290 | }, |
294 | 291 | "required": ["input"] |
295 | 292 | }, |
296 | 293 | "FixPayloadTest": { |
297 | 294 | "type": "object", |
298 | 295 | "properties": { |
299 | | - "action": { "const": "fix_payload" }, |
300 | | - "input": { "type": "string" }, |
| 296 | + "action": {"const": "fix_payload"}, |
| 297 | + "input": {"type": "string"}, |
301 | 298 | "expect": {} |
302 | 299 | }, |
303 | 300 | "required": ["input", "expect"] |
304 | 301 | }, |
305 | 302 | "HasPartsTest": { |
306 | 303 | "type": "object", |
307 | 304 | "properties": { |
308 | | - "action": { "const": "has_parts" }, |
309 | | - "input": { "type": "string" }, |
310 | | - "expect": { "type": "boolean" } |
| 305 | + "action": {"const": "has_parts"}, |
| 306 | + "input": {"type": "string"}, |
| 307 | + "expect": {"type": "boolean"} |
311 | 308 | }, |
312 | 309 | "required": ["input", "expect"] |
313 | 310 | }, |
314 | 311 | "SelectCatalogTest": { |
315 | 312 | "type": "object", |
316 | 313 | "properties": { |
317 | | - "action": { "const": "select_catalog" }, |
318 | | - "args": { "type": "object" }, |
319 | | - "expect_selected": { "type": "string" }, |
320 | | - "expect_catalog_schema": { "type": "object" }, |
321 | | - "expect_error": { "type": "string" } |
| 314 | + "action": {"const": "select_catalog"}, |
| 315 | + "args": {"type": "object"}, |
| 316 | + "expect_selected": {"type": "string"}, |
| 317 | + "expect_catalog_schema": {"type": "object"}, |
| 318 | + "expect_error": {"type": "string"} |
322 | 319 | }, |
323 | 320 | "required": ["args"] |
324 | 321 | }, |
325 | 322 | "GeneratePromptTest": { |
326 | 323 | "type": "object", |
327 | 324 | "properties": { |
328 | | - "action": { "const": "generate_prompt" }, |
329 | | - "args": { "type": "object" }, |
| 325 | + "action": {"const": "generate_prompt"}, |
| 326 | + "args": {"type": "object"}, |
330 | 327 | "expect_contains": { |
331 | 328 | "type": "array", |
332 | | - "items": { "type": "string" } |
| 329 | + "items": {"type": "string"} |
333 | 330 | } |
334 | 331 | }, |
335 | 332 | "required": ["args", "expect_contains"] |
336 | 333 | }, |
337 | 334 | "LoadCatalogTest": { |
338 | 335 | "type": "object", |
339 | 336 | "properties": { |
340 | | - "action": { "const": "load_catalog" }, |
| 337 | + "action": {"const": "load_catalog"}, |
341 | 338 | "catalog_configs": { |
342 | 339 | "type": "array", |
343 | 340 | "items": { |
344 | 341 | "type": "object", |
345 | 342 | "properties": { |
346 | | - "name": { "type": "string" }, |
347 | | - "path": { "type": "string" } |
| 343 | + "name": {"type": "string"}, |
| 344 | + "path": {"type": "string"} |
348 | 345 | }, |
349 | 346 | "required": ["name", "path"] |
350 | 347 | } |
351 | 348 | }, |
352 | 349 | "modifiers": { |
353 | 350 | "type": "array", |
354 | | - "items": { "type": "string" } |
| 351 | + "items": {"type": "string"} |
355 | 352 | }, |
356 | 353 | "expect": { |
357 | 354 | "type": "object", |
358 | 355 | "properties": { |
359 | | - "catalog_schema": { "type": "object" }, |
| 356 | + "catalog_schema": {"type": "object"}, |
360 | 357 | "supported_catalog_ids": { |
361 | 358 | "type": "array", |
362 | | - "items": { "type": "string" } |
| 359 | + "items": {"type": "string"} |
363 | 360 | } |
364 | 361 | } |
365 | 362 | } |
|
369 | 366 | "ConvertEventTest": { |
370 | 367 | "type": "object", |
371 | 368 | "properties": { |
372 | | - "action": { "const": "convert_event" }, |
373 | | - "args": { "type": "object" }, |
374 | | - "expect": { "type": "object" }, |
375 | | - "expect_empty": { "type": "boolean" } |
| 369 | + "action": {"const": "convert_event"}, |
| 370 | + "args": {"type": "object"}, |
| 371 | + "expect": {"type": "object"}, |
| 372 | + "expect_empty": {"type": "boolean"} |
376 | 373 | }, |
377 | 374 | "required": ["action", "args"] |
378 | 375 | }, |
379 | 376 | "CreateA2uiPartTest": { |
380 | 377 | "type": "object", |
381 | 378 | "properties": { |
382 | | - "action": { "const": "create_a2ui_part" }, |
383 | | - "args": { "type": "object" }, |
384 | | - "expect": { "type": "object" } |
| 379 | + "action": {"const": "create_a2ui_part"}, |
| 380 | + "args": {"type": "object"}, |
| 381 | + "expect": {"type": "object"} |
385 | 382 | }, |
386 | 383 | "required": ["action", "args", "expect"] |
387 | 384 | }, |
388 | 385 | "IsA2uiPartTest": { |
389 | 386 | "type": "object", |
390 | 387 | "properties": { |
391 | | - "action": { "const": "is_a2ui_part" }, |
392 | | - "args": { "type": "object" }, |
393 | | - "expect": { "type": "boolean" } |
| 388 | + "action": {"const": "is_a2ui_part"}, |
| 389 | + "args": {"type": "object"}, |
| 390 | + "expect": {"type": "boolean"} |
394 | 391 | }, |
395 | 392 | "required": ["action", "args", "expect"] |
396 | 393 | }, |
397 | 394 | "TryActivateExtensionTest": { |
398 | 395 | "type": "object", |
399 | 396 | "properties": { |
400 | | - "action": { "const": "try_activate_extension" }, |
401 | | - "args": { "type": "object" }, |
402 | | - "expect": { "type": "boolean" } |
| 397 | + "action": {"const": "try_activate_extension"}, |
| 398 | + "args": {"type": "object"}, |
| 399 | + "expect": {"type": "boolean"} |
403 | 400 | }, |
404 | 401 | "required": ["action", "args", "expect"] |
405 | 402 | }, |
406 | 403 | "HandleRpcTest": { |
407 | 404 | "type": "object", |
408 | 405 | "properties": { |
409 | | - "action": { "const": "handle_rpc" }, |
410 | | - "args": { "type": "object" }, |
411 | | - "expect": { "type": "object" } |
| 406 | + "action": {"const": "handle_rpc"}, |
| 407 | + "args": {"type": "object"}, |
| 408 | + "expect": {"type": "object"} |
412 | 409 | }, |
413 | 410 | "required": ["action", "args", "expect"] |
414 | 411 | }, |
415 | 412 | "ExecuteToolTest": { |
416 | 413 | "type": "object", |
417 | 414 | "properties": { |
418 | | - "action": { "const": "execute_tool" }, |
419 | | - "args": { "type": "object" }, |
420 | | - "expect": { "type": "object" } |
| 415 | + "action": {"const": "execute_tool"}, |
| 416 | + "args": {"type": "object"}, |
| 417 | + "expect": {"type": "object"} |
421 | 418 | }, |
422 | 419 | "required": ["action", "args", "expect"] |
423 | 420 | }, |
424 | 421 | "GetExtensionTest": { |
425 | 422 | "type": "object", |
426 | 423 | "properties": { |
427 | | - "action": { "const": "get_extension" }, |
428 | | - "args": { "type": "object" }, |
429 | | - "expect": { "type": "object" } |
| 424 | + "action": {"const": "get_extension"}, |
| 425 | + "args": {"type": "object"}, |
| 426 | + "expect": {"type": "object"} |
430 | 427 | }, |
431 | 428 | "required": ["action", "args", "expect"] |
432 | 429 | }, |
433 | 430 | "TryActivateTest": { |
434 | 431 | "type": "object", |
435 | 432 | "properties": { |
436 | | - "action": { "const": "try_activate" }, |
437 | | - "args": { "type": "object" }, |
438 | | - "expect": { "type": "object" } |
| 433 | + "action": {"const": "try_activate"}, |
| 434 | + "args": {"type": "object"}, |
| 435 | + "expect": {"type": "object"} |
439 | 436 | }, |
440 | 437 | "required": ["action", "args", "expect"] |
441 | 438 | }, |
442 | 439 | "SelectNewestTest": { |
443 | 440 | "type": "object", |
444 | 441 | "properties": { |
445 | | - "action": { "const": "select_newest" }, |
446 | | - "args": { "type": "object" }, |
447 | | - "expect": { "type": "object" } |
| 442 | + "action": {"const": "select_newest"}, |
| 443 | + "args": {"type": "object"}, |
| 444 | + "expect": {"type": "object"} |
448 | 445 | }, |
449 | 446 | "required": ["action", "args", "expect"] |
450 | 447 | } |
|
0 commit comments