yet-another-json-schema-validator

0.2.0 • Public • Published

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

Package Sidebar

Install

npm i yet-another-json-schema-validator

Weekly Downloads

1

Version

0.2.0

License

MIT

Unpacked Size

989 kB

Total Files

11

Last publish

Collaborators

  • brunomartinspro