Open gdiegel opened 1 year ago
This is very probably fixed with https://github.com/OpenAPITools/openapi-generator/pull/15593.
says merged. but it looks like it still doesnt work with version 7.0.1 of the plugin.
i just tried in a quarkus app and the openapi-generator-maven-plugin 7.0.1: it still generates javax. Even after setting the
I can confirm that this definitely works with 7.1.0. Issue should be closed I guess.
This is only partly fixed. The config option useJakartaEe
still produces this error, even though in our case we use the gradle plugin of the openapi generator (org.openapi.generator
). It only works when setting as additionalProperties
, which clashes with the documentation that says this would be only required for the CLI version.
This is only partly fixed. The config option
useJakartaEe
still produces this error, even though in our case we use the gradle plugin of the openapi generator (org.openapi.generator
). It only works when setting asadditionalProperties
, which clashes with the documentation that says this would be only required for the CLI version.
This!
And I think the issue is that the code expects a Boolean
vs a String
, as
This works
additionalProperties = mapOf(
"useJakartaEe" to true
)
But this doesn't
additionalProperties = mapOf(
"useJakartaEe" to "true"
)
This had my scratching my head for a while.
I have a second error for it: the generated build file also has the wrong version of jakarta, at least updating it is what fixes intellij not recognizing the annotations.
Bug Report Checklist
Description
Model classes generated with the combination of
kotlin-server
generator andjaxrs-spec
library don't importjakarta
packages when the config optionuseJakartaEe
is set to true.Actual result
Expected result
openapi-generator version
6.6.0
OpenAPI declaration file content or url
Generation Details
Steps to reproduce
Related issues/PRs
Suggest a fix
I've submitted PR https://github.com/OpenAPITools/openapi-generator/pull/15618 to fix this issue.