Skip to content

Version 1.12.0

Choose a tag to compare

@bhch bhch released this 01 Jun 16:11
· 222 commits to master since this release

01 Jun, 2022

What's new

  • Support for references and recursive nesting
    Added support for $ref and $def keywords for referencing other parts of schema.
  • additionalProperties keyword now accepts a schema
    Earlier, additionalProperties keyword was only a boolean and the new properties could only be of string type. Now you can provide a schema for the new properties through this keyword.

Bugfixes

  • #28: If an array has minItems set to 0 or undefined, then it will be kept empty initially. If the array has a default, it will use the default value instead of being blank. Earlier, an item was automatically added to the arrays which was not expected behaviour.