{"uid":"cap_YiPNUmge50CgDCg--xNfy","slug":"openverbs-format-validate-7ab29a75","name":"OpenVerbs Format Validate","description":"Parse a document (json, json5, jsonc, yaml, xml, csv, tsv, toml, ndjson, ini, env, properties, plist or querystring) and validate it against a JSON Schema. Returns whether it is valid and a list of precise, path-tagged errors. Malformed input or an invalid schema is rejected before payment.","url":"https://format.openverbs.com/v1/validate","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":{"type":"object","required":["data","schema"],"properties":{"data":{"type":"string","maxLength":1000000,"minLength":1,"description":"The document to validate, as a string in the `from` format."},"from":{"enum":["json","json5","jsonc","yaml","xml","csv","tsv","toml","ndjson","ini","env","properties","plist","querystring"],"type":"string","description":"Source format of `data`. Default json."},"schema":{"type":"object","description":"A JSON Schema to validate the parsed document against."}},"additionalProperties":false},"type":{"type":"string","const":"http"},"method":{"enum":["POST"],"type":"string"},"bodyType":{"enum":["json","form-data","text"],"type":"string"}},"additionalProperties":false}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.004","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.004/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.004","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.004","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_qStBYO6a9MVgSoANXjb_l","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.004","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Parses a document in any of 14 supported formats and validates it against a JSON Schema, returning validity status and path-tagged errors","exampleAgentPrompt":"Can you validate this YAML config against my JSON Schema and tell me exactly which fields are invalid or missing? Here's the YAML document and the schema I want it checked against.","exampleUseCases":[{"title":"CI pipeline config validation","prompt":"I have a GitHub Actions workflow YAML file and a JSON Schema that defines what a valid workflow looks like — can you parse the YAML and validate it against the schema, listing any path-tagged errors?"},{"title":"API request body linting","prompt":"Before I send this JSON5 request body to my API, can you validate it against the API's JSON Schema and tell me if anything is wrong, including exactly which fields fail?"},{"title":"Environment file schema check","prompt":"I've got a .env file for my app and a JSON Schema describing the required environment variables and their types — please validate the env file against the schema and report any issues with field paths."}],"resultDescription":"Returns a boolean indicating whether the document is valid against the provided JSON Schema, plus a list of validation errors each tagged with the precise JSON path where the error occurred. Malformed input or an invalid schema is rejected before any charge is applied.","failureModes":["Malformed document (unparseable in the stated format) — rejected before payment with a parse error","Invalid JSON Schema supplied — rejected before payment","Document exceeds 1,000,000 character limit — request rejected","Unsupported format value — schema enum violation","Missing required fields (data or schema) — validation error before processing"],"whenToPreferThis":"Choose this endpoint when you need to validate a document in a non-JSON format (YAML, TOML, CSV, XML, INI, etc.) against a JSON Schema, or when you need precise path-tagged error locations rather than a simple pass/fail. It is especially useful when the input format is uncertain or when you need programmatic error reporting for CI pipelines, API gateways, or config management systems.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T00:40:00.639Z","isFirstParty":false}