JSON Schema validation
json.validateValidates a JSON payload (any JSON value, or JSON text as a string) against a JSON Schema and returns valid plus every error with its JSON Pointer path. Supported keywords: type, required, properties, additionalProperties, items/prefixItems, enum, const, minimum/maximum, exclusiveMinimum/exclusiveMaximum, multipleOf, minLength/maxLength, pattern, minItems/maxItems, uniqueItems, min/maxProperties, allOf. A schema using other keywords ($ref, anyOf, oneOf, not, if/then) is rejected (not charged) rather than half-checked. Without a schema only well-formedness is checked. Price: $0.01 USDC per call on Base mainnet ($0.001 on Base Sepolia), paid with x402; failed calls are not charged.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| schema | No | JSON Schema (object, or JSON text). | |
| payload | Yes | The JSON value to validate; a string is parsed as JSON text unless parse_string is false. | |
| schema_name | No | Optional label echoed back. | |
| parse_string | No | Parse a string payload as JSON text (default true). |