Package Exports
- yet-another-json-schema-validator
- yet-another-json-schema-validator/index.js
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (yet-another-json-schema-validator) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
Yet Another Json Schema Validator
Quick Start
Install
npm i yet-another-json-schema-validator --globalUse
yajsvFile 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/