[{"data":1,"prerenderedAt":25},["ShallowReactive",2],{"content-json-schema-validator-en":3},{"about":4,"steps":7,"faq":12},[5,6],"A JSON Schema describes what a JSON document must look like: which fields are required, which types are allowed, minimum and maximum values, patterns and formats such as email or date. APIs (e.g. in OpenAPI descriptions), config files and editors use it to catch mistakes early.","The validator checks your JSON against a draft 4, 6\u002F7, 2019-09 or 2020-12 schema and shows every error with the path to the affected value and to the rule in the schema. If you do not have a schema yet, the tool generates one from an example document that you can refine. Everything runs in your browser; your data is not uploaded.",[8,9,10,11],"Paste your JSON document on the left and the JSON Schema on the right.","The tool detects the version from the “$schema” field. You can also choose it yourself.","The result appears instantly: either “matches the schema” or a list of errors with path and rule.","Without a schema, click “Generate schema from JSON” and adjust the result, e.g. with minimum values or formats.",[13,16,19,22],{"q":14,"a":15},"Which schema versions are supported?","Draft 4, draft 6\u002F7, 2019-09 and 2020-12, including $ref to definitions in the same schema. External schemas referenced by URL are not fetched.",{"q":17,"a":18},"Are formats like email or date checked?","Yes, the “format” keyword is validated, e.g. for email, date, date-time, uri, uuid, ipv4 and ipv6.",{"q":20,"a":21},"How good is the generated schema?","It describes the types, properties and array items of the example and makes every present field required. For several objects in an array, only fields that appear in all of them are required. The tool cannot guess limits, patterns and formats – add them yourself.",{"q":23,"a":24},"Why are the error messages in English?","They come straight from the validator. The path and rule next to them show unambiguously which value violates which keyword. Format JSON and check it for syntax errors with the [[json-formatter]]; compare two documents with [[json-diff]].",1793707145102]