0.0.5 • Published 2 years ago

proskomma-json-validator v0.0.5

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

proskomma-json-validator

A JSON Schema Validator for Proskomma data

Usage

import ProskommaJsonValidator from 'proskomma-json-validator;
const validatorResult = validator.validate('sequencePerf', {});
/*
=>
    {
      "schemaKey": "sequencePerf",
      "isValid": false,
      "errors": [
        {
          "instancePath": "",
          "schemaPath": "#/then/allOf/0/required",
          "keyword": "required",
          "params": {
            "missingProperty": "blocks"
          },
          "message": "must have required property 'blocks'"
        }
      ]
    }
*/

Supported Schema

  • docSetsPerf
  • docSetPerf
  • documentPerf
  • sequencePerf
0.0.5

2 years ago

0.0.4

2 years ago

0.0.3

2 years ago

0.0.1

2 years ago