Good Eggs JSON Schema Validator
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)
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