You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
There are several options to enable compatible generations of Java templates for newer libraries of Spring Boot (3.0.1) and jakarta namespace.
Spring generator has useSpringBoot3.
Java generator has useJakartaEe.
These options might be confusing which option to use.
Describe the solution you'd like
How about to keep only one option? eg kinda generic useJakartaEe?
Or introduce another option which would be needed for legacy reasons? eg useLegacyJavaxNamespace?
Describe alternatives you've considered
Alternatively support both options useSpringBoot3useJakartaEe interchangeable.
Or use useJakartaEe for namespace related generation and useSpringBoot3 only for SB3 but not namespace related generation.
There is no need as such. useSpringBoot3 is very SB specific and has much more thing do to, not only javax or jakarta package.
Probably the only thing that can be update is documentation. Like when you use useSpringBoot3=true, then useJakartaEe will always be set to true regardless of existing value
Do you think it would suffice to apply useJakartaEe=true; additionalProperties.put(USE_JAKARTA_EE, useJakartaEe); inside of if (isUseSpringBoot3()) {?
(And also documenting it)
Do you think it would suffice to apply useJakartaEe=true; additionalProperties.put(USE_JAKARTA_EE, useJakartaEe); inside of if (isUseSpringBoot3()) {? (And also documenting it)
yep
parenko
added a commit
to parenko/openapi-generator
that referenced
this issue
Jan 3, 2023
Is your feature request related to a problem? Please describe.
There are several options to enable compatible generations of Java templates for newer libraries of Spring Boot (3.0.1) and jakarta namespace.
Spring generator has
useSpringBoot3
.Java generator has
useJakartaEe
.These options might be confusing which option to use.
Describe the solution you'd like
How about to keep only one option? eg kinda generic
useJakartaEe
?Or introduce another option which would be needed for legacy reasons? eg
useLegacyJavaxNamespace
?Describe alternatives you've considered
Alternatively support both options
useSpringBoot3
useJakartaEe
interchangeable.Or use
useJakartaEe
for namespace related generation anduseSpringBoot3
only for SB3 but not namespace related generation.cc @borsch @wing328
The text was updated successfully, but these errors were encountered: