{"uid":"cap_37nEOZnEgG5DBivTSngpr","slug":"json-schema-validator-draft-07-2020-12-51ef2672","name":"JSON Schema Validator (draft-07 / 2020-12)","description":"Validate up to ten JSON documents against JSON Schema draft-07 or 2020-12. Returns per-document validity and actionable errors with instance paths. Runs isolated with bounded time and memory; no remote schema loading or automatic data modification.","url":"https://contract-api-production-c176.up.railway.app/v1/contracts/validate?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"draft":{"enum":["2020-12","draft-07"],"type":"string","default":"2020-12"},"schema":{"anyOf":[{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},{"type":"boolean"}]},"documents":{"type":"array","items":{},"maxItems":10,"minItems":1}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.02","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.02/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.02","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.02","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_wqX0RnGGInp99A5RoNfwF","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.02","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Validates up to 10 JSON documents against a provided JSON Schema (draft-07 or 2020-12) and returns per-document validity status with actionable error paths.","exampleAgentPrompt":"Validate these three JSON documents against my schema — use JSON Schema 2020-12 — and tell me which ones fail and exactly where the errors are.","exampleUseCases":[{"title":"API payload contract enforcement","prompt":"I have a JSON Schema for my API request body and I want to check whether these five incoming payloads actually conform to it — use draft-07 and show me exactly which fields are wrong and where."},{"title":"CI data quality gate","prompt":"Before we import this batch of up to 10 JSON records into the database, validate them all against our product schema using JSON Schema 2020-12 and flag any that have missing required fields or wrong types."},{"title":"Schema migration compatibility check","prompt":"We just updated our event schema to 2020-12 — can you run these sample JSON documents through validation against the new schema and tell me which ones break and what the error paths are?"}],"resultDescription":"Returns a per-document validation report: for each submitted JSON document, the response indicates whether it is valid, and if not, lists actionable errors including the instance path (JSON Pointer) pointing to the exact failing location within the document.","failureModes":["More than 10 documents submitted — request rejected with validation error","Invalid or unsupported schema draft value — returns error","Schema references external URIs (remote $ref) — blocked, no remote loading","Malformed JSON in request body — returns parse error","Execution timeout if schema is extremely complex — bounded time limit enforced","Memory limit exceeded for very large documents — request terminated"],"whenToPreferThis":"Choose this endpoint when you need isolated, secure JSON Schema validation without any side effects, remote schema loading, or data mutation. It is ideal for enforcing API contract compliance, running CI/CD data quality gates, or batch-checking up to 10 documents in a single call. Prefer it over home-rolled validators when you need explicit draft-07 or 2020-12 support and structured error paths per document.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-15T06:31:52.322Z","isFirstParty":false,"canonicalSlug":"json-schema-validator-draft-07-2020-12-51ef2672"}