goodeggs-json-schema-validator
TypeScript icon, indicating that this package has built-in type declarations

6.0.6 • Public • Published

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

/goodeggs-json-schema-validator/

    Package Sidebar

    Install

    npm i goodeggs-json-schema-validator

    Weekly Downloads

    40

    Version

    6.0.6

    License

    MIT

    Unpacked Size

    9.98 kB

    Total Files

    9

    Last publish

    Collaborators

    • goodeggs-admin
    • sylspren
    • dannynelson
    • dlau
    • demands
    • jhob