{"slug":"netintel-dev-schema-validate-b338bb","title":"Validate data against a supplied schema — checks required fields, nested objects","host":"netintel.dev","method":"POST","resource":"https://netintel.dev/schema/validate","category":"other","description":"Validate data against a supplied schema — checks required fields, nested objects, arrays, enums, string formats, numeric ranges, lengths, and additional-property rules deterministically, with optional type coercion and repair, returning precise errors with JSON paths so agents can verify structured ","price_listed":0.02,"price_asked":0.02,"state":"answering","state_label":"Answering","checks_7d":1,"answered_7d":1,"latency_ms_median":934,"reported_calls_30d":1,"reported_payers_30d":1,"networks":["eip155:8453","solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp"],"badge":"unverified","paid_checks_7d":0,"paid_ok_7d":0,"example_input":{"body":{"data":{"age":"42","name":"Acme"},"schema":{"age":"number","email":"email","name":"string"}},"bodyType":"json","method":"POST","type":"http"},"output_schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"input":{"additionalProperties":false,"properties":{"body":{"properties":{"allow_llm":{"description":"Default true. Gates the LLM repair fallback only — validation itself is always deterministic.","type":"boolean"},"coerce":{"description":"Default false. Coerce values to the declared types where lossless (\"5\" → 5, \"yes\" → true).","type":"boolean"},"data":{"description":"The data to validate: an object, an array, or a JSON string (malformed strings are repaired first). Max 64KB.","type":["object","array","string"]},"repair":{"description":"Default false. When invalid, also return a repaired copy of the data plus is_repaired_valid. Deterministic first (coercion, declared defaults, enum casing, strict extra-key removal).","type":"boolean"},"schema":{"description":"JSON Schema ({\"type\":\"object\",\"properties\":{...},\"required\":[...]}) or a simplified field→type map ({\"age\":\"number\",\"email\":\"email\",\"tags\":\"string[]\",\"bio\":\"string?\"}). In the map form a field is required unless suffixed with '?'. Formats: email, url, date, date-time, uuid, ipv4, ipv6, hostname.","type":"object"}},"required":["data","schema"],"type":"object"},"bodyType":{"enum":["json","form-data","text"],"type":"string"},"method":{"enum":["POST"],"type":"string"},"type":{"const":"http","type":"string"}},"required":["type","method","bodyType","body"],"type":"object"},"output":{"properties":{"example":{"properties":{"coerced":{"type":"boolean"},"error_count":{"type":"number"},"errors":{"type":"array"},"findings":{"type":"array"},"grade":{"type":"string"},"is_repaired_valid":{"type":["boolean","null"]},"repaired":{"type":["object","array","null"]},"score":{"type":"number"},"valid":{"type":"boolean"},"warnings":{"type":"array"}},"type":"object"},"type":{"type":"string"}},"required":["type"],"type":"object"}},"required":["input"],"type":"object"},"history":[{"day":"2026-09-24","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.02,"price_match":true,"latency_ms":934,"error":null}],"description_full":"Validate data against a supplied schema — checks required fields, nested objects, arrays, enums, string formats, numeric ranges, lengths, and additional-property rules deterministically, with optional type coercion and repair, returning precise errors with JSON paths so agents can verify structured data before acting on it.","last_updated":"2026-09-19T20:42:53.649Z","schemes":["exact"]}