data_schema
Validate file syntax and manage schema associations for JSON, YAML, and TOML files. Scan for schema directories and bind files to schema URLs or names.
Instructions
Unified schema operations tool.
Actions:
validate: Validate file syntax and optionally against schema
scan: Recursively search for schema directories
add_dir: Add custom schema directory
add_catalog: Add custom schema catalog
associate: Bind file to schema URL or name
disassociate: Remove file-to-schema association
list: Show current schema configuration
Examples:
action="validate", file_path="config.json"
action="associate", file_path=".gitlab-ci.yml", schema_name="gitlab-ci"
action="disassociate", file_path=".gitlab-ci.yml"
action="list"
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| uri | No | Catalog URI (for add_catalog action) | |
| name | No | Catalog name (for add_catalog action) | |
| path | No | Directory path (for add_dir action) | |
| action | Yes | Action: validate, scan, add_dir, add_catalog, associate, disassociate, or list | |
| file_path | No | Path to file (for validate/associate/disassociate actions) | |
| max_depth | No | Max search depth (for scan action) | |
| schema_url | No | Schema URL (for associate action) | |
| schema_name | No | Schema name from catalog (for associate action) | |
| schema_path | No | Path to schema file (for validate action) | |
| schema_paths | No | Optional per-document schema file paths for multi-document YAML (for validate action) | |
| search_paths | No | Paths to scan (for scan action) | |
| document_index | No | Optional YAML document index for validate action in multi-document files (0-based) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||