data_schema
Validate, manage, and associate schemas for JSON, YAML, and TOML files to ensure data integrity and consistency across configurations.
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 |
|---|---|---|---|
| action | Yes | Action: validate, scan, add_dir, add_catalog, associate, disassociate, or list | |
| file_path | No | Path to file (for validate/associate/disassociate actions) | |
| schema_path | No | Path to schema file (for validate action) | |
| schema_url | No | Schema URL (for associate action) | |
| schema_name | No | Schema name from catalog (for associate action) | |
| search_paths | No | Paths to scan (for scan action) | |
| path | No | Directory path (for add_dir action) | |
| name | No | Catalog name (for add_catalog action) | |
| uri | No | Catalog URI (for add_catalog action) | |
| max_depth | No | Max search depth (for scan action) |