Releases: Chrimle/openapi-to-java-records-mustache-templates
v2.9.5
What's Changed
Bug Fixes
- Make
fromValue
JavaDoc Conform to Google Java Format by @Chrimle in #436The JavaDoc for the
fromValue
-method in all generatedenum
classes, both standalone and inner, now always conform togoogle-java-format
.
Dependency Updates
- Update
openapi-generator-maven-plugin
to7.9.0
by @Chrimle in #428 - Update
openapi-generator-maven-plugin
to7.10.0
by @Chrimle in #430 - Update
openapi-generator-maven-plugin
to7.11.0
by @Chrimle in #432 - Update
openapi-generator-maven-plugin
to7.12.0
by @Chrimle in #434
Full Changelog: v2.9.4...v2.9.5
v2.9.4
What's Changed
Bug Fixes
- [okhttp-gson] Annotate Generated
enum
classes with@JsonAdapter
by @Chrimle in #415Annotates all generated
enum
classes, both standalone and inner classes, withcom.google.gson.annotations.JsonAdapter
.
Full Changelog: v2.9.3...v2.9.4
v2.9.3
What's Changed
Bug Fixes
- [webclient] Optimize Imports by @Chrimle in #412
Removes the redundant imports
com.fasterxml.jackson.annotation.JsonCreator
andcom.fasterxml.jackson.annotation.JsonValue
from generatedrecord
classes.
Full Changelog: v2.9.2...v2.9.3
v2.9.2
v2.9.1
What's Changed
Bug Fixes
- Generate Classes Conforming to Google Java Format by @Chrimle in #404
Generates
enum
andrecord
classes conforming more to Google Java Format. The classes MAY still violategoogle-java-format
, particularly unused imports. This only affects formatting ofenum
andrecord
classes, and does not include any changes to functionality or behaviour.
Full Changelog: v2.9.0...v2.9.1
v2.9.0
What's Changed
New Features
- [okhttp-gson] Generate
TypeAdapter
&TypeAdapterFactory
Inner-Classes by @Chrimle in #399Generates inner-classes for serializing/deserializing generated
enum
/record
classes using GSON.TypeAdapter
forenum
-classes andTypeAdapterFactory
forrecord
-classes. These classes and methods MAY be used by other classes, particularly those generated whengenerateSupportingFiles=true
. NOTE: The introduction of these classes and containing methods does NOT imply that dependent features/functionalities have been verified and/or are supported.
Dependency Updates
- Bump org.jacoco:jacoco-maven-plugin from 0.8.12 to 0.8.13 by @dependabot in #394
- Bump junit-jupiter.version from 5.12.1 to 5.12.2 by @dependabot in #396
- Bump com.diffplug.spotless:spotless-maven-plugin from 2.44.3 to 2.44.4 by @dependabot in #397
- Bump com.google.code.gson:gson from 2.12.1 to 2.13.0 by @dependabot in #398
Full Changelog: v2.8.2...v2.9.0
v2.8.2
What's Changed
Bug Fixes
- [webclient] Annotate
getValue
with@JsonValue
inenum
Classes by @Chrimle in #389Annotates the
getValue
method in generatedenum
classes with@JsonValue
, when theserializationLibrary
is set tojackson
(default for thewebclient
-library). This allows Jackson to serializeenum
values using thegetValue
method. MAY be a BREAKING change forenum
classes where constantvalue
s differ from theirname
.
Full Changelog: v2.8.1...v2.8.2
v2.8.1
What's Changed
Bug Fixes
- [webclient] Annotate
fromValue
with@JsonCreator
inenum
Classes by @Chrimle in #383Annotates the
fromValue
method in generatedenum
classes with@JsonCreator
, when theserializationLibrary
is set tojackson
(default for thewebclient
-library). This allows Jackson to deserializeenum
values using thefromValue
method. MAY be a BREAKING change forenum
classes where constantvalue
s differ from theirname
.
Full Changelog: v2.8.0...v2.8.1
v2.8.0
What's Changed
New Features
- [okhttp-gson] Generate static
validateJsonElement
method in all Classes by @Chrimle in #375Generates a static
validateJsonElement
method in all generatedenum
andrecord
classes, when thelibrary
-configuration is set tookhttp-gson
(defaultlibrary
). This method is used by GSON to validate the object. Additionally, two static fields;openapiFields
andopenapiRequiredFields
, will also be generated in allrecord
classes, as these are used in thevalidateJsonElement
method. This method may also be referenced by other classes, most notably by generatedoneOf
-interface classes, or by supportingFiles. However, please note that this release does not include support foroneOf
/anyOf
/allOf
.
Full Changelog: v2.7.1...v2.8.0
v2.7.1
What's Changed
Bug Fixes
- Support Generating
enum
classes withURI
format by @Chrimle in #379Adds support for generating
enum
classes withtype: string
andformat: uri
. This supports both stand-aloneenum
classes and innerenum
classes. This was previously not supported, due to two issues. The first issue was due to not importing theURI
class. The second was an issue inherited fromopenapi-generator-maven-plugin
, which causes compilation issues when theuseEnumCaseInsensitive
is set totrue
. Both of these issues have been resolved as part of this change.
Dependency Updates
- Bump com.github.spotbugs:spotbugs-annotations from 4.9.2 to 4.9.3 by @dependabot in #369
- Bump junit-jupiter.version from 5.12.0 to 5.12.1 by @dependabot in #368
Full Changelog: v2.7.0...v2.7.1