Skip to content

4.9.0 – First Level Container Item Annotations

Compare
Choose a tag to compare
@CarstenWickner CarstenWickner released this 02 Apr 21:08

jsonschema-generator

Added

  • Convenience constructors on SchemaGeneratorConfigBuilder without explicit ObjectMapper instance being expected
  • Convenience methods on FieldScope/MethodScope for accessing (first level) container item annotations: getContainerItemAnnotation() and getContainerItemAnnotationConsideringFieldAndGetter()

Changed

  • MethodScope.getAnnotation() now also considers annotations directly on return type (when no matching annotation was found on the method itself)

Fixed

  • Attributes set in custom property definitions should not be overridden by other configurations (except for explicit attribute overrides)

jsonschema-module-javax-validation

Changed

  • Consider (first level) container item annotations (e.g. List<@Size(min = 3) String>)