Avoid top-level composition in tool schemas
This commit is contained in:
@@ -1,15 +1,17 @@
|
||||
{
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"records": {"type": "array"},
|
||||
"records_path": {"type": "string"},
|
||||
"records": {
|
||||
"type": "array",
|
||||
"description": "Canonical records. Provide exactly one of records or records_path."
|
||||
},
|
||||
"records_path": {
|
||||
"type": "string",
|
||||
"description": "Path to records JSON/JSONL. Provide exactly one of records or records_path."
|
||||
},
|
||||
"output_path": {"type": "string"},
|
||||
"output_dir": {"type": "string"},
|
||||
"require_validation_ok": {"type": "boolean", "default": true},
|
||||
"overwrite": {"type": "boolean", "default": true}
|
||||
},
|
||||
"anyOf": [
|
||||
{"required": ["records"]},
|
||||
{"required": ["records_path"]}
|
||||
]
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user