{"uid":"cap_qt-0SsiX4tjXD4bxNIeGg","slug":"brainiac-json-schema-validator-2b9c13f1","name":"BRAINIAC JSON Schema Validator","description":"Pay-per-call APIs for AI agents: OFAC sanctions screening, compliance checks, token security, and Base chain data via x402. No account. Fixed USDC price. MCP-ready.","url":"https://www.brainiac.software/api/v1/integration/json-schema-validate?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"file":{"type":"object","required":["mediaType","fileBase64"],"properties":{"filename":{"type":"string","maxLength":180,"minLength":1},"mediaType":{"enum":["application/json","text/plain"],"type":"string"},"fileBase64":{"type":"string","maxLength":12000000,"minLength":1}},"additionalProperties":false},"json":{"type":"string","maxLength":200000},"side":{"enum":["request","response"],"type":"string"},"after":{},"before":{},"schema":{},"source":{},"target":{},"example":{},"payload":{},"examples":{"type":"array","items":{},"maxItems":20},"toVersion":{"type":"string","maxLength":40,"minLength":1},"operations":{"type":"array","items":{"oneOf":[{"type":"object","required":["op","from","to"],"properties":{"op":{"type":"string","const":"rename"},"to":{"type":"string","maxLength":200,"minLength":1},"from":{"type":"string","maxLength":200,"minLength":1}},"additionalProperties":false},{"type":"object","required":["op","from","to"],"properties":{"op":{"type":"string","const":"copy"},"to":{"type":"string","maxLength":200,"minLength":1},"from":{"type":"string","maxLength":200,"minLength":1}},"additionalProperties":false},{"type":"object","required":["op","paths"],"properties":{"op":{"type":"string","const":"pick"},"paths":{"type":"array","items":{"type":"string","maxLength":200,"minLength":1},"maxItems":40,"minItems":1}},"additionalProperties":false},{"type":"object","required":["op","paths"],"properties":{"op":{"type":"string","const":"omit"},"paths":{"type":"array","items":{"type":"string","maxLength":200,"minLength":1},"maxItems":40,"minItems":1}},"additionalProperties":false},{"type":"object","required":["op","path","type"],"properties":{"op":{"type":"string","const":"cast"},"path":{"type":"string","maxLength":200,"minLength":1},"type":{"enum":["string","number","integer","boolean"],"type":"string"}},"additionalProperties":false},{"type":"object","required":["op","path","value"],"properties":{"op":{"type":"string","const":"default"},"path":{"type":"string","maxLength":200,"minLength":1},"value":{}},"additionalProperties":false}]},"maxItems":40},"fromVersion":{"type":"string","maxLength":40,"minLength":1}}},"responseSchema":{"type":"json","example":{"issues":[{"code":"required_missing","kind":"missing","path":"/total","detail":"This required property is absent. No value was invented.","keyword":"required"},{"code":"type_mismatch","kind":"conflict","path":"/id","detail":"The value is number. The schema allows string.","keyword":"type"},{"code":"additional_property","kind":"conflict","path":"/note","detail":"This property is not in the schema. It was not removed.","keyword":"additionalProperties"}],"status":"invalid","checkedAt":"2026-11-03T15:00:00.000Z","limitations":["No external API is called and no user-supplied code is executed.","Validation covers type, properties, required, additionalProperties, items, enum, const, length, range, and the formats email, date, and date-time. Other JSON Schema keywords are reported and not applied.","A generated schema uses only values present in the supplied examples. additionalProperties stays true.","A field mapping is proposed only when the path matches or the field name matches one field on each side.","Breaking and non-breaking labels are returned only when side is request or response.","Transforms are rename, copy, pick, omit, cast, and default. A default is written only when the path is absent."],"codeExecuted":false,"externalCall":false,"valuesInvented":false,"schemaCompliance":false}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.04","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.04/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.04","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.04","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_qo3Z7PfitA3Qk-1gSET5g","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.04","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Validates a JSON payload against a JSON Schema and returns detailed per-field validation issues with codes, paths, and descriptions","exampleAgentPrompt":"Can you validate this JSON payload against my schema and tell me exactly which fields are missing, have the wrong type, or aren't allowed? Here's the JSON: {\"id\": 42, \"note\": \"hello\"} and the schema requires 'total' as a string and forbids additional properties.","exampleUseCases":[{"title":"Pre-send API request validation","prompt":"Before I send this request body to the payment API, check it against the schema — I want to know if any required fields are missing or if any values have the wrong type. The JSON is {\"amount\": 100, \"currency\": \"USD\"} and it's going in as a request payload."},{"title":"Catch schema drift in API responses","prompt":"My backend is returning this JSON response and I need to know if it still conforms to our documented response schema. Here's the response: {\"id\": \"abc\", \"status\": 1, \"extra_field\": true}. Flag anything that conflicts or isn't allowed."},{"title":"Validate uploaded config file","prompt":"I have a config file I want to check for schema compliance — can you validate it against our JSON Schema and list every error with the exact path and reason? The file is attached as a base64-encoded JSON."}],"resultDescription":"Returns a JSON object with a 'status' field ('valid' or 'invalid'), a 'checkedAt' timestamp, an 'issues' array where each item contains a code (e.g. 'required_missing', 'type_mismatch', 'additional_property'), a 'kind' ('missing' or 'conflict'), a JSON pointer 'path', a human-readable 'detail', and the offending JSON Schema 'keyword'. Also includes a 'limitations' array listing unsupported keywords and behavioral constraints, plus boolean flags: codeExecuted, externalCall, valuesInvented, schemaCompliance.","failureModes":["Unsupported JSON Schema keywords (e.g. $ref resolution, if/then/else) are reported but not enforced","Validation only covers type, properties, required, additionalProperties, items, enum, const, length, range, email/date/date-time formats — other keywords are noted as not applied","Breaking/non-breaking change labels are only returned when 'side' is set to 'request' or 'response'","Oversized payloads (json > 200,000 chars or file base64 > 12,000,000 chars) will be rejected","Malformed base64 file input will cause a parse error","Field mappings are only proposed when path or field name matches one field on each side"],"whenToPreferThis":"Choose this endpoint when you need fast, deterministic, pay-per-call JSON Schema validation with no account setup, no code execution, and no external calls — ideal for agents validating API request/response payloads before or after transmission. Prefer it over heavyweight validation libraries when running in a serverless or agent context where spinning up a JSON Schema engine is impractical, or when you need structured machine-readable issue reports with per-field codes and paths.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-11-12T18:39:48.967Z","isFirstParty":false,"canonicalSlug":"brainiac-json-schema-validator-2b9c13f1"}