{"category":"data","endpoint":"https://setget.net/v1/tools/json-schema-validate","examples":[{"input":{"schema":"{\"type\":\"object\",\"required\":[\"name\",\"age\"],\"properties\":{\"age\":{\"type\":\"integer\"}}}","text":"{\"name\":\"Sam\",\"age\":\"31\"}"},"output":{"errors":[{"message":"'31' is not of type 'integer'","path":"$.age","rule":"type"}],"valid":false}},{"input":{"schema":"{\"type\":\"object\",\"required\":[\"name\"]}","text":"{\"name\":\"Sam\",\"age\":31}"},"output":{"errors":[],"valid":true},"title":"A valid document"}],"input_schema":{"additionalProperties":false,"properties":{"schema":{"description":"The JSON Schema.","examples":["{\"type\":\"object\",\"required\":[\"name\",\"age\"],\"properties\":{\"age\":{\"type\":\"integer\"}}}"],"type":"string"},"text":{"description":"The JSON document to validate.","examples":["{\"name\":\"Sam\",\"age\":\"31\"}"],"type":"string"}},"required":["text","schema"],"type":"object"},"keywords":["json schema","validate","schema","json","draft 2020-12","openapi"],"related":["json-schema-infer","json-validate"],"slug":"json-schema-validate","summary":"Validate JSON against a JSON Schema and list every violation with its location.","tier":"inline","title":"JSON Schema validator","url":"https://setget.net/tools/json-schema-validate"}
