Newer versions of the openapi-generator greatly improve the generated Java code and simplify work with the generated classes.
We currently use v5.4.0 of the generator. v6.x introduced an issue to discriminator mappings, thus we cannot upgrade yet and have to wait for the pull request https://github.com/OpenAPITools/openapi-generator/pull/15284, which is included in milestone 7.0.0 (planned for mid June).
Newer versions of the openapi-generator greatly improve the generated Java code and simplify work with the generated classes.
We currently use v5.4.0 of the generator. v6.x introduced an issue to discriminator mappings, thus we cannot upgrade yet and have to wait for the pull request https://github.com/OpenAPITools/openapi-generator/pull/15284, which is included in milestone 7.0.0 (planned for mid June).