{"uid":"cap_I3HcWUAyup0C2gJfSMHuU","slug":"json-schema-validate-1051a26f","name":"JSON Schema Validate","description":"JSON Schema validation without external libraries: validates data against a schema supporting type, required, properties, additionalProperties, items, enum, const, min/max (length, items, properties, numeric, exclusive), pattern, format (email/uri/date-time), uniqueItems, multipleOf, anyOf/oneOf/allOf/not. Returns valid true/false and every error with its JSON path. $0.01 per validation.","url":"https://intel.rallylive.ca/dev/json-schema-validate","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["GET"],"type":"string"},"queryParams":{"type":"object","properties":{}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.01","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.01/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_JLEwzDqCceOdG8a1TF9JG","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Validates arbitrary JSON data against a JSON Schema (Draft 2020-12), returning a valid/invalid flag and detailed error messages with JSON paths for every violation.","exampleAgentPrompt":"Can you validate this JSON payload against my schema and tell me every error with its exact path? The data is {\"name\":\"\",\"age\":-1} and the schema requires name to be a non-empty string and age to be a positive integer.","exampleUseCases":[{"title":"API response contract checking","prompt":"I just got a response from the payments API and I want to make sure it matches our expected schema — required fields are 'id', 'amount', and 'currency', all strings. Can you validate this JSON and list every violation with its path?"},{"title":"Form submission data validation","prompt":"Before I save this user registration payload to the database, check it against our schema: email must be a valid email format, age must be between 18 and 120, and role must be one of 'admin', 'editor', or 'viewer'. Tell me every field that fails."},{"title":"CI pipeline schema conformance test","prompt":"In our build pipeline, validate this config JSON against our deployment schema — it must have a required 'environment' string set to either 'staging' or 'production', a 'replicas' integer between 1 and 10, and no additional properties allowed. List all errors with JSON paths."}],"resultDescription":"Returns a JSON object with a boolean 'valid' field indicating whether the data conforms to the schema, plus an array of error objects each containing the JSON path of the failing element and a human-readable error message describing the constraint violation.","failureModes":["Malformed JSON data or schema causes a parse error response","Unsupported schema keywords or drafts beyond the listed feature set may be silently ignored","Very deeply nested or large JSON documents may hit size/time limits","Network timeout if the service is temporarily unavailable","Invalid query parameters return an error rather than a validation result"],"whenToPreferThis":"Choose this endpoint when you need JSON Schema validation without wanting to bundle a library like Ajv into your runtime, especially in serverless or constrained environments. It supports a comprehensive set of Draft 2020-12 keywords including format validation (email, URI, date-time), composition keywords (anyOf/oneOf/allOf/not), and returns all errors at once with JSON paths — making it ideal for debugging and automated pipelines rather than just a pass/fail check.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T13:13:22.914Z","isFirstParty":false}