{"uid":"cap_V7ntnhKrF4orjC20TrnNx","slug":"vextorium-json-schema-validator-147a5abf","name":"Vextorium JSON Schema Validator","description":"Validate JSON data against a JSON Schema (drafts 4 to 2020-12, with format checks): valid flag and every error with its exact path and failing rule. Check API responses or LLM structured output.","url":"https://api.vextorium.com/v1/json-schema-validate?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method","bodyType","body"],"properties":{"body":{"required":["data","schema"],"properties":{"data":{"description":"JSON data"},"schema":{"description":"JSON Schema"}}},"type":{"type":"string","const":"http"},"method":{"enum":["POST"],"type":"string"},"bodyType":{"enum":["json","form-data","text"],"type":"string"}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":["object","null"],"properties":{"draft":{"type":["string","null"]},"valid":{"type":["boolean","null"]},"detail":{"type":["array","null"],"items":{"type":["null","object"],"properties":{"rule":{"type":["null","string"]},"route":{"type":["null","string"]},"message":{"type":["null","string"]}}}},"errors":{"type":["number","null"]}}}}}}},"responseSchema":{"type":"json","example":{"draft":"Draft202012Validator","valid":false,"detail":[{"rule":"required","route":"$","message":"'name' is a required property"},{"rule":"type","route":"$.id","message":"'1' is not of type 'integer'"}],"errors":2}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.003","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"registry","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.003/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.003","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.003","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_RBfWGIbBdrzyMNkaYLGCn","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.003","costPer":"request","priority":0,"asset":null,"unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Validates JSON data against a JSON Schema (drafts 4 through 2020-12) and returns a valid/invalid flag plus detailed error paths and failing rules.","exampleAgentPrompt":"Check this JSON object against my schema and tell me exactly which fields are invalid or missing — I need the path and failing rule for each error: data is {\"id\": \"1\", \"items\": []} and the schema requires id to be an integer and items to have at least one entry.","exampleUseCases":[{"title":"Validating LLM structured output","prompt":"I just got this JSON back from the language model and I'm not sure it matches my required schema — can you validate it and list every field that's wrong or missing, with the exact path and rule that failed?"},{"title":"Checking API response conformance","prompt":"Our payment service just returned this JSON payload — please validate it against our response schema and tell me if it's valid or flag every error with its path and the rule it broke."},{"title":"Debugging a malformed config file","prompt":"This config JSON is failing somewhere but I can't tell where — run it against the JSON Schema for our config format and give me a full list of all validation errors with the exact location in the document."}],"resultDescription":"Returns a JSON object containing the schema draft used, a boolean 'valid' flag, the total number of errors, and a 'detail' array where each entry has the failing rule name (e.g. 'required', 'type'), the exact JSON path to the offending field (e.g. '$.id'), and a human-readable error message.","failureModes":["Invalid or unparseable JSON data returns a parse error rather than schema errors","Invalid JSON Schema document causes schema compilation failure","Unsupported schema draft version may result in an error or partial validation","Network timeout on large deeply-nested documents","Missing 'data' or 'schema' fields in the request body return a 400-level error"],"whenToPreferThis":"Choose this endpoint when you need precise, path-level validation feedback against a formal JSON Schema (any draft from 4 to 2020-12), especially for verifying LLM-generated structured output or API responses where knowing exactly which fields fail and why is critical. Prefer it over in-process validators when running in a serverless or sandboxed environment without library access, or when you need a neutral third-party validation step in an agentic pipeline.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-11T18:55:05.553Z","isFirstParty":false,"canonicalSlug":"vextorium-json-schema-validator-506b3404"}