Releases: Chrimle/openapi-to-java-records-mustache-templates
v2.1.1
What's Changed
Bug Fixes
- Fix recursive validation of
record
fields using@Valid
annotations by @Chrimle in #221Fields 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 theuseBeanValidation
-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
What's Changed
New Features
- Add JavaDoc to
enum
constants usingx-enum-descriptions
from OpenAPI by @Chrimle in #204Generates JavaDocs for constants in both inner and standalone generated
enum
classes, using thex-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
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
What's Changed
New Features
- Merge
deprecation.mustache
intopojo.mustache
&modelEnum.mustache
by @Chrimle in #195The
deprecation.mustache
file only included the annotation@Deprecated
. This was only used in two places:pojo.mustache
andmodelEnum.mustache
to annotate deprecatedrecord
andenum
classes, respectively. This did not warrant being a separate.mustache
file.
Full Changelog: v1.11.1...v1.11.2
v1.11.1
What's Changed
Bug Fixes
- Conform to
google-java-format
when generating JavaDoc for classes by @Chrimle in #194The generated JavaDoc for
record
classes would not always conform togoogle-java-format
. When arecord
was not@deprecated
, there would be no empty line between the description and the@param
s. This has been solved, so that there is always an empty line between the description and deprecation/parameters. This only affects the JavaDoc ofrecord
andenum
classes.
Full Changelog: v1.11.0...v1.11.1
v1.11.0
What's Changed
New Features
- Generate
fromValue(String)
-method in all generatedenum
classes by @Chrimle in #190Introduces an additional method in all generated
enum
classes. This method is not used or referenced anywhere - so using it is optional. Forenum
classes generated withuseEnumCaseInsensitive
, 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
v1.9.0
v1.8.1
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
What's Changed
New Features
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