Skip to content

v0.12.0

Compare
Choose a tag to compare
@leadpony leadpony released this 08 Feb 13:18
· 268 commits to master since this release

0.12.0 - 2019-02-08

Added

  • JsonSchema#containsKeyword() which tests whether a schema contains the specified keyword or not.
  • JsonSchema#defaultValue() which returns the value of the "default" keyword.
  • JsonSchema#hasAbsoluteId() which tests whether a schema has an "$id" whose value is an absolute URI.
  • JsonSchema#getInPlaceSubschemas() which returns the subschemas which will be applied to the same instance location as the owning schema.
  • Detection of infinite recursive looping while reading schemas.

Changed

  • JsonSchema#subschemas() and subschemaAt() were renamed to getSubschemas() and getSubschemaAt(), respectively.

Fixed

  • A bug which was causing JsonSchemaReader to throw a ClassCastException when the schema has both "$id" and "$ref" keywords. (Issue #2 reported by @avstp)
  • A bug which was causing the evaluation result of "if"/"then"/"else" keywords to be ignored when the instance is a JSON object or a JSON array.