Skip to content

Releases: Chrimle/openapi-to-java-records-mustache-templates

v2.1.1

17 Nov 23:52
252ab37
Compare
Choose a tag to compare

What's Changed

Bug Fixes

  • Fix recursive validation of record fields using @Valid annotations by @Chrimle in #221

    Fields of generated record classes could themselves have constraints but were not annotated with @Valid, resulting in these fields not being validated. This fix ensures that all custom field types - whether inner classes, standalone classes, or self-referencing classes - are correctly annotated with @Valid. This is only applicable when generating with the useBeanValidation-option enabled.

Dependency Updates

  • Bump junit-jupiter.version from 5.11.2 to 5.11.3 by @dependabot in #206
  • Bump com.fasterxml.jackson.core:jackson-annotations from 2.18.0 to 2.18.1 by @dependabot in #218

Full Changelog: v2.1.0...v2.1.1

v2.1.0

27 Oct 20:28
4c83ea6
Compare
Choose a tag to compare

What's Changed

New Features

  • Add JavaDoc to enum constants using x-enum-descriptions from OpenAPI by @Chrimle in #204

    Generates JavaDocs for constants in both inner and standalone generated enum classes, using the x-enum-descriptions property in the OpenAPI Spec. This change is fully backward-compatible, as this property was previously ignored.

Full Changelog: v2.0.0...v2.1.0

v2.0.0

26 Oct 20:21
ee828ea
Compare
Choose a tag to compare

What's Changed

New Features

  • Change Software License from MIT to Apache License 2.0 by @Chrimle in #200

    The Project's Software License has been changed from MIT to Apache License 2.0. There are no changes made to generated classes. The reason for this change is to facilitate the use of the project by organizations. All project source files, including .mustache and .java files, now feature license headers.

Full Changelog: v1.11.2...v2.0.0

v1.11.2

26 Oct 16:51
3f3c662
Compare
Choose a tag to compare

What's Changed

New Features

  • Merge deprecation.mustache into pojo.mustache & modelEnum.mustache by @Chrimle in #195

    The deprecation.mustache file only included the annotation @Deprecated. This was only used in two places: pojo.mustache and modelEnum.mustache to annotate deprecated record and enum classes, respectively. This did not warrant being a separate .mustache file.

Full Changelog: v1.11.1...v1.11.2

v1.11.1

25 Oct 20:47
4cf7078
Compare
Choose a tag to compare

What's Changed

Bug Fixes

  • Conform to google-java-format when generating JavaDoc for classes by @Chrimle in #194

    The generated JavaDoc for record classes would not always conform to google-java-format. When a record was not @deprecated, there would be no empty line between the description and the @params. This has been solved, so that there is always an empty line between the description and deprecation/parameters. This only affects the JavaDoc of record and enum classes.

Full Changelog: v1.11.0...v1.11.1

v1.11.0

24 Oct 21:22
e088fa1
Compare
Choose a tag to compare

What's Changed

New Features

  • Generate fromValue(String)-method in all generated enum classes by @Chrimle in #190

    Introduces an additional method in all generated enum classes. This method is not used or referenced anywhere - so using it is optional. For enum classes generated with useEnumCaseInsensitive, the method works as before - but the JavaDoc has been rephrased, and inner variable names have been renamed more appropriately.

Full Changelog: v1.10.0...v1.11.0

v1.10.0

23 Oct 20:58
e3205db
Compare
Choose a tag to compare

What's Changed

New Features

Full Changelog: v1.9.0...v1.10.0

v1.9.0

22 Oct 20:58
5cecc9b
Compare
Choose a tag to compare

What's Changed

New Features

  • Add value-field to Generated enum classes by @Chrimle in #183

Full Changelog: v1.8.1...v1.9.0

v1.8.1

21 Oct 22:43
1b35892
Compare
Choose a tag to compare

What's Changed

New Features

Dependency Updates

  • Bump org.hibernate.validator:hibernate-validator from 8.0.0.Final to 8.0.1.Final by @dependabot in #147

Full Changelog: v1.8.0...v1.8.1

v1.8.0

10 Oct 22:49
14c9626
Compare
Choose a tag to compare

What's Changed

New Features

  • Support useBeanValidation-configOption by @Chrimle in #50

Dependency Updates

  • Bump junit-jupiter.version from 5.11.0 to 5.11.1 by @dependabot in #134
  • Bump org.apache.maven.plugins:maven-source-plugin from 3.3.0 to 3.3.1 by @dependabot in #133
  • Bump com.fasterxml.jackson.core:jackson-annotations from 2.17.2 to 2.18.0 by @dependabot in #135
  • Bump org.sonatype.central:central-publishing-maven-plugin from 0.4.0 to 0.6.0 by @dependabot in #136
  • Bump org.apache.maven.plugins:maven-gpg-plugin from 3.1.0 to 3.2.7 by @dependabot in #137
  • Bump junit-jupiter.version from 5.11.1 to 5.11.2 by @dependabot in #140

Full Changelog: v1.7.6...v1.8.0