/goodeggs-json-schema-validator

Shared configuration for Good Eggs JSON schema validation

Primary LanguageJavaScriptMIT LicenseMIT

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