{"uid":"cap_P5WpiZV1tMU-z8BiZfpTR","slug":"x402-utils-json-schema-validator-687d8d73","name":"x402 Utils – JSON Schema Validator","description":"Validate a JSON value against a JSON Schema (draft-07 and 2019-09 keywords, formats such as email, uri, date-time) and list every error with its path. Patterns run on RE2, so a schema cannot stall the check.","url":"https://utils.kagurazaka.dev/v1/json-schema?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"data":{"description":"the JSON value to check"},"schema":{"type":"object","description":"the JSON Schema"}}},"responseSchema":{"type":"json","example":{"valid":false,"errors":[{"path":"/email","keyword":"format","message":"must match format \"email\""}],"error_count":1}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.001","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.001/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_CkWWKK3XalF5aNmyAkwsf","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.001","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Validates a JSON value against a JSON Schema (draft-07 / 2019-09) and returns a list of every validation error with its path and keyword","exampleAgentPrompt":"Can you validate this JSON object against my schema and tell me exactly which fields fail and why? The data is {\"email\": \"not-an-email\", \"age\": \"thirty\"} and the schema requires email to be a valid email format and age to be an integer.","exampleUseCases":[{"title":"API payload validation before submission","prompt":"Before I submit this user registration payload to our API, validate it against our schema — the data is {\"username\": \"alice\", \"email\": \"alice@\", \"birthdate\": \"2000-13-01\"} and the schema requires username as a non-empty string, email as a valid email format, and birthdate as a date-time. Show me every error with its path."},{"title":"Catching config file schema errors","prompt":"I have a JSON config file and I want to check it against our app's JSON Schema to find any mistakes — here's the config: {\"timeout\": \"fast\", \"retries\": -1} and the schema says timeout must be a positive integer and retries must be between 0 and 10. List all the errors."},{"title":"Automated CI schema compliance check","prompt":"Run a schema validation check on this API response body against our response schema — the value is {\"status\": \"ok\", \"count\": \"five\", \"items\": null} and the schema says count must be an integer and items must be an array. I need the full list of errors with their JSON paths."}],"resultDescription":"Returns a JSON object with a 'valid' boolean, an 'errors' array where each entry includes the JSON path (e.g. '/email'), the failing keyword (e.g. 'format', 'type', 'minimum'), and a human-readable message, plus an 'error_count' integer. If the data passes all schema constraints, 'valid' is true and 'errors' is empty.","failureModes":["Malformed JSON schema object causes a 400 or schema-parse error","Missing 'data' or 'schema' fields in request body returns an error","Unsupported JSON Schema keywords beyond draft-07/2019-09 may be silently ignored","Complex RE2-incompatible regex patterns in schema 'pattern' keywords will fail or be rejected","Very deeply nested data structures may hit processing limits","Payment failure (402) if USDC balance is insufficient"],"whenToPreferThis":"Choose this endpoint when you need fast, safe JSON Schema validation with full error reporting and RE2-safe pattern evaluation, especially for untrusted schemas where regex denial-of-service is a concern. It supports draft-07 and 2019-09 keywords plus common format validators (email, uri, date-time). Prefer it over inline validation libraries when you want a hosted, pay-per-call service with no dependency management, or when running in an environment without a native JSON Schema library.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-29T12:34:32.292Z","isFirstParty":false,"canonicalSlug":"x402-utils-json-schema-validator-687d8d73"}