github ajv-validator/ajv v6.0.0-beta.0

latest releases: v8.13.0, v8.12.0, v8.11.2...
pre-release6 years ago

draft-07 support:

  • if/then/else keywords
  • $comment keyword (reserved)
  • default meta-schema is draft-07

Formats:

  • date, date-time, time: support leap year and leap second
  • json-pointer: only validates a string format of JSON pointer
  • json-pointer-uri-fragment: to validate uri-fragment format of JSON pointer

Keyword changes

  • Improved algorithm for uniqueItems keyword to validate an array of same-type scalars in a single pass
  • Keywords uniqueItems and contains are validated after items and type coercion (with coerceTypes option)
  • Additional error parameters for oneOf keyword

Other

  • Async schemas can only be compiled to async functions, compilation to generator functions is no longer supported.
  • Documented convention for plugins.

Don't miss a new ajv release

NewReleases is sending notifications on new releases.