yet-another-json-schema-validator
v0.2.0
Published
Validate json files against a schema
Downloads
94
Maintainers
Readme
Yet Another Json Schema Validator
Quick Start
Install
npm i yet-another-json-schema-validator --global
Use
yajsv
File Search
Searches for a .schema.json and .json files, then it uses the schema associated to validate the json file.
Example:
hobbies.json
{"name": "James", "hobbies": [".NET"]}
hobbies.schema.json
{
"description":"A person",
"type":"object",
"properties":{
"name":{
"type":"string"
},
"hobbies":{
"type":"array",
"items":{
"type":"string"
}
}
}
}
Useful Websites
- Create Schemas Based on Json https://www.liquid-technologies.com/online-json-to-schema-converter
- Validate Schemas with a Json https://www.jsonschemavalidator.net/