goodeggs-json-schema-validator

v6.0.6
Good Eggs JSON Schema Validator

Good Eggs JSON Schema Validator

build status npm version MIT license we're hiring

npm install goodeggs-json-schema-validator

Common JSON schema and tv4 add-ons for Good Eggs ecosystem.

Common schema add-ons

Adds support for these formats:

  • objectid
  • date (YYYY-MM-DD)
  • date-time (for example, 2014-05-02T12:59:29+00:00)
  • time (HH:mm or HH:mm:ss, e.g. 23:04:20)
  • email

Simply include the format in your schema:

{"type": "string", "format": "date"}

Contributing

Please follow our Code of Conduct when contributing to this project.

$ git clone https://github.com/goodeggs/goodeggs-json-schema-validator && cd goodeggs-json-schema-validator
$ npm install
$ npm test

Releasing

To release a new version of this module, use yarn to bump the version in package.json and create a git tag, then push. This will automatically get published to the NPM registry via CI.

yarn version --new-version=<major|minor|patch|premajor|preminor|prepatch>
git push --follow-tags
npm i goodeggs-json-schema-validator

Metadata

  • MIT
  • Whatever
  • Good Eggs
  • released 6/23/2023

Downloads