Skip to content

4.36.0 – Support Boolean const and Jackson "Accept Single Value as Array"

Latest
Compare
Choose a tag to compare
@CarstenWickner CarstenWickner released this 20 Jul 22:16
· 13 commits to main since this release

jsonschema-generator

Added

  • new Option.ACCEPT_SINGLE_VALUE_AS_ARRAY to support Jackson DeserializationFeature of the same name, i.e., when an array type is declared, an instance of a single item should also be accepted by the schema

Changed

  • consider Boolean values as valid in const/enum (i.e., no longer ignore them)

jsonschema-module-jakarta-validation

Added

  • populate const/enum based on @AssertTrue/@AssertFalse