npm.io
6.0.6 • Published 3 years ago

goodeggs-json-schema-validator

Licence
MIT
Version
6.0.6
Deps
1
Size
10 kB
Vulns
0
Weekly
0
Stars
3

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-02T1229+00:00)
  • time (HH:mm or HHss, e.g. 2320)
  • 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