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
[Optional] Sponsorship to speed up the bug fix or feature request (example)
Description
With the new version 7.11.0 of the openapi-generator, a @Nullable annotation was introduced in the SpringCodegen.java from org.springframework.lang
Since we are using the JavaCamelServerCodegen.java in our Quarkus project, which extends the SpringCodegen.java, these annotations are introduced in our generated pojo's, causing a compilation failure.
openapi-generator version
7.11.0
Generation Details
Example of generation. The @Nullable is only added to non-required attributes.
catagreu
changed the title
[BUG][JAVA][QUARKUS] Version 7.11.0 introduces springframework Nullable annotation in Quarkus project.
[BUG][JAVA][QUARKUS] 7.11.0 version introduces springframework Nullable annotation in Quarkus project.
Feb 3, 2025
Bug Report Checklist
Description
With the new version
7.11.0
of theopenapi-generator
, a@Nullable
annotation was introduced in theSpringCodegen.java
fromorg.springframework.lang
Since we are using the
JavaCamelServerCodegen.java
in ourQuarkus
project, which extends theSpringCodegen.java
, these annotations are introduced in our generated pojo's, causing a compilation failure.openapi-generator version
7.11.0
Generation Details
Example of generation. The
@Nullable
is only added to non-required attributes.Related issues/PRs
This is related with the PR merged recently:
1742b93#diff-9de34b4aad5de707e8aa0c031f20a6573f8f50826a437f0652c54b3788b37d41
Coming from issue: #17382
Suggest a fix
We propose to switch to a more neutral annotation like
jakarta.annotation.Nullable
which is compatible across frameworks.The text was updated successfully, but these errors were encountered: