Skip to content

4.12.0 – Sortable Properties and support of @JsonNaming annotations

Compare
Choose a tag to compare
@CarstenWickner CarstenWickner released this 10 May 20:48

jsonschema-generator

Added

  • New SchemaGeneratorGeneralConfigPart.withPropertySorter() exposing the sorting logic of an object schema's properties

jsonschema-module-jackson

Added

  • New JacksonOption.RESPECT_JSONPROPERTY_ORDER to sort properties in an object's schema based on @JsonPropertyOrder annotations
  • New JacksonOption.IGNORE_PROPERTY_NAMING_STRATEGY to skip the adjustment of property names based on @JsonNaming annotations

Changed

  • Consider @JsonNaming annotations to alter the names of contained fields according to the specified PropertyNamingStrategy