JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • 0
  • Score
    100M100P100Q36279F
  • License MIT

Validate json files against a schema

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 --global

Use

yajsv

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