npm ajv 6.0.0-beta.0
v6.0.0-beta.0

latest releases: 8.17.1, 8.16.0, 8.15.0...
7 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.