{"repo":"tdegrunt/jsonschema","free":true,"listed":false,"github":"https://github.com/tdegrunt/jsonschema","clone":"git clone https://github.com/tdegrunt/jsonschema.git","description":"JSON Schema validation","language":"JavaScript","stars":1875,"topics":["json-schema","javascript","nodejs"],"license":null,"category":"dev-tools","readme_excerpt":"jsonschema JSON schema validator, which is designed to be fast and simple to use. JSON Schema versions through draft-07 are fully supported. Contributing & bugs Please fork the repository, make the changes in your fork and include tests. Once you're done making changes, send in a pull request. Bug reports Please include a test which shows why the code fails. Installation You can install jsonschema using a package manager like npm, yarn, or bun: Usage Simple Simple object validation using JSON schemas. Even simpler Complex example, with split schemas and references Returned ValidatorResult object, will show this example is NOT valid since: \"votes\": \"lots\" is not an integer. Example for Array schema For a comprehensive, annotated example illustrating all possible validation options, see examples/all.js Features Definitions All schema definitions are supported, $schema is ignored. Types All types are supported Handling undefined undefined is not a value known to JSON, and by default, the validator treats it as if it is not invalid. i.e., it will return valid. This behavior may be changed with the \"required\" option: Formats Disabling the format keyword. You may disable format validation by providing disableFormat: true to the validator options. String Formats All formats are supported, phone numbers are expected to follow the E.123 standard. Custom Formats You may add your own custom format functions. Format functions accept the input being validated and return a boolean value. I","default_branch":null,"files":null,"tree":[],"storefront":"/r/tdegrunt","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/tdegrunt/jsonschema/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}