json_validate
Validate JSON files against specified schemas, ensuring data integrity and compliance. Configure byte limits and strict validation modes for tailored results.
Instructions
Validate JSON data against a JSON schema. Requires maxBytes
parameter (default 10KB) for the data file. Returns true if the JSON data is valid against the schema, or false if it is not. The path must be within allowed directories.
Input Schema
Name | Required | Description | Default |
---|---|---|---|
allErrors | No | Whether to collect all validation errors or stop at first error | |
maxBytes | Yes | Maximum bytes to read from the file. Must be a positive integer. Handler default: 10KB. | |
path | Yes | Path to the JSON file to validate | |
schemaPath | Yes | Path to the JSON Schema file | |
strict | No | Whether to enable strict mode validation (additionalProperties: false) |