Skip to content

v3.1.0

Latest

Choose a tag to compare

@Chrimle Chrimle released this 09 Nov 01:17
· 13 commits to main since this release
a689a0a

What's Changed

New Features

  • Support openapi-generator-maven-plugin Version 7.15.0 by @Chrimle in #505

    Official support for Version 7.15.0 of openapi-generator-maven-plugin. From now on, all changes will also be tested with 7.15.0.

  • Support openapi-generator-maven-plugin Version 7.16.0 by @Chrimle in #509

    Official support for version 7.16.0 of openapi-generator-maven-plugin. NOTE: this dependency update will add import java.util.Locale; to ALL generated record/enum classes.

  • Support openapi-generator-maven-plugin Version 7.17.0 by @Chrimle in #510

    Official support for version 7.17.0 of openapi-generator-maven-plugin. This version will also be used during tests. This update does not update generated record/enum classes.

Bug Fixes

  • Remove Extra Indentation on record-fields by @Chrimle in #515

    Removes an extra indentation (space) before each field of a record-class. This is to conform to google-java-format. NOTE: This affects ALL generated record classes. This is only a formatting fix, and does not not affect functionality in any way.

  • Avoid Instantiating Unused Fallback List/Set-instances by @Chrimle in #518

    Fixes an unintended implementation of fallback values for records with List/Set-fields. A fallback instance (ArrayList / LinkedHashSet) would always be instantiated, despite never being used, due to the usage of Objects.requireNonNullElse(T,T). The fix is to use Objects.requireNonNullElseGet(T,() -> T) for List/Set-fields. This ensures that these fallback/default objects are not instantiated unless needed. No changes have been made to other field types. NOTE: This is intended as a performance improvement, and should not affect functionality.

Dependency Updates

  • Bump com.github.spotbugs:spotbugs-annotations from 4.9.3 to 4.9.8 by @dependabot[bot] in #497
  • Bump org.openapitools:jackson-databind-nullable from 0.2.6 to 0.2.7 by @Chrimle in #508
  • Bump org.openapitools:jackson-databind-nullable from 0.2.7 to 0.2.8 by @dependabot[bot] in #498
  • Bump com.google.code.gson:gson from 2.13.1 to 2.13.2 by @dependabot[bot] in #482
  • Bump spring-web.version from 6.2.8 to 6.2.12 by @dependabot[bot] in #495

Summary & Reflection

This release adds official support for newer versions of openapi-generator-maven-plugin, which means that the .mustache template files are compatible with even more versions - verified by the extensive test suite. An implementation bug was discovered in record classes that have List/Set-fields, which was quickly fixed. Similarly, indentations of all fields in record classes were incorrect, but addressed quickly. This is the first MINOR release since 3.0.0, and is also intended as a production-ready release. With that said, a poll has been opened about creating/publishing release candidates. See #520, to better catch issues and potentially establish a more stable/predictable release cadence.

Full Changelog: v3.0.1...v3.1.0