Skip to content

5.1.0

Latest
Compare
Choose a tag to compare
@kylef kylef released this 28 Jul 17:27
· 1 commit to master since this release

Enhancements

  • JSON Schemas generated for fixed-type arrays with a single sub-type will no longer be wrapped in an anyOf schema. Thus array[Object] as fixed-type will now result in the following schema:

    {
      "type": "array",
      "items": { "type": "object" }
    }

Bug Fixes

  • JSON Schemas generated for fixed-type arrays with no types will no longer produce an empty anyOf subschema. anyOf must be a non-empty array in JSON Schema.