Skip to content

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

v2.9.5

27 Apr 00:10
79f303f
Compare
Choose a tag to compare

What's Changed

Bug Fixes

  • Make fromValue JavaDoc Conform to Google Java Format by @Chrimle in #436

    The JavaDoc for the fromValue-method in all generated enum classes, both standalone and inner, now always conform to google-java-format.

Dependency Updates

  • Update openapi-generator-maven-plugin to 7.9.0 by @Chrimle in #428
  • Update openapi-generator-maven-plugin to 7.10.0 by @Chrimle in #430
  • Update openapi-generator-maven-plugin to 7.11.0 by @Chrimle in #432
  • Update openapi-generator-maven-plugin to 7.12.0 by @Chrimle in #434

Full Changelog: v2.9.4...v2.9.5

v2.9.4

21 Apr 15:39
a914866
Compare
Choose a tag to compare

What's Changed

Bug Fixes

  • [okhttp-gson] Annotate Generated enum classes with @JsonAdapter by @Chrimle in #415

    Annotates all generated enum classes, both standalone and inner classes, with com.google.gson.annotations.JsonAdapter.

Full Changelog: v2.9.3...v2.9.4

v2.9.3

20 Apr 12:09
1088870
Compare
Choose a tag to compare

What's Changed

Bug Fixes

  • [webclient] Optimize Imports by @Chrimle in #412

    Removes the redundant imports com.fasterxml.jackson.annotation.JsonCreator and com.fasterxml.jackson.annotation.JsonValue from generated record classes.

Full Changelog: v2.9.2...v2.9.3

v2.9.2

20 Apr 11:17
0c0d7ba
Compare
Choose a tag to compare

What's Changed

Bug Fixes

  • [okhttp-gson] Optimize Imports by @Chrimle in #409

    Removes the unused imports java.util.Map and com.google.gson.JsonArray from generated record classes.

Full Changelog: v2.9.1...v2.9.2

v2.9.1

19 Apr 11:31
1c88b5c
Compare
Choose a tag to compare

What's Changed

Bug Fixes

  • Generate Classes Conforming to Google Java Format by @Chrimle in #404

    Generates enum and record classes conforming more to Google Java Format. The classes MAY still violate google-java-format, particularly unused imports. This only affects formatting of enum and record classes, and does not include any changes to functionality or behaviour.

Full Changelog: v2.9.0...v2.9.1

v2.9.0

18 Apr 23:23
1281974
Compare
Choose a tag to compare

What's Changed

New Features

  • [okhttp-gson] Generate TypeAdapter & TypeAdapterFactory Inner-Classes by @Chrimle in #399

    Generates inner-classes for serializing/deserializing generated enum/record classes using GSON. TypeAdapter for enum-classes and TypeAdapterFactory for record-classes. These classes and methods MAY be used by other classes, particularly those generated when generateSupportingFiles=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

06 Apr 15:12
4a845b5
Compare
Choose a tag to compare

What's Changed

Bug Fixes

  • [webclient] Annotate getValue with @JsonValue in enum Classes by @Chrimle in #389

    Annotates the getValue method in generated enum classes with @JsonValue, when the serializationLibrary is set to jackson (default for the webclient-library). This allows Jackson to serialize enum values using the getValue method. MAY be a BREAKING change for enum classes where constant values differ from their name.

Full Changelog: v2.8.1...v2.8.2

v2.8.1

06 Apr 13:19
3ceb629
Compare
Choose a tag to compare

What's Changed

Bug Fixes

  • [webclient] Annotate fromValue with @JsonCreator in enum Classes by @Chrimle in #383

    Annotates the fromValue method in generated enum classes with @JsonCreator, when the serializationLibrary is set to jackson (default for the webclient-library). This allows Jackson to deserialize enum values using the fromValue method. MAY be a BREAKING change for enum classes where constant values differ from their name.

Full Changelog: v2.8.0...v2.8.1

v2.8.0

05 Apr 20:34
ab117aa
Compare
Choose a tag to compare

What's Changed

New Features

  • [okhttp-gson] Generate static validateJsonElement method in all Classes by @Chrimle in #375

    Generates a static validateJsonElement method in all generated enum and record classes, when the library-configuration is set to okhttp-gson (default library). This method is used by GSON to validate the object. Additionally, two static fields; openapiFields and openapiRequiredFields, will also be generated in all record classes, as these are used in the validateJsonElement method. This method may also be referenced by other classes, most notably by generated oneOf-interface classes, or by supportingFiles. However, please note that this release does not include support for oneOf / anyOf / allOf.

Full Changelog: v2.7.1...v2.8.0

v2.7.1

23 Mar 13:47
b0ab06e
Compare
Choose a tag to compare

What's Changed

Bug Fixes

  • Support Generating enum classes with URI format by @Chrimle in #379

    Adds support for generating enum classes with type: string and format: uri. This supports both stand-alone enum classes and inner enum classes. This was previously not supported, due to two issues. The first issue was due to not importing the URI class. The second was an issue inherited from openapi-generator-maven-plugin, which causes compilation issues when the useEnumCaseInsensitive is set to true. 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