Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add annotationLibrary to java configuration #270

Closed
cache-sk opened this issue Oct 14, 2024 · 2 comments · Fixed by #271
Closed

Add annotationLibrary to java configuration #270

cache-sk opened this issue Oct 14, 2024 · 2 comments · Fixed by #271

Comments

@cache-sk
Copy link
Contributor

There are two issues in java client since version 20.0.0 about problems with native build due not registering model during processAot task:

Main problem is missing swagger annotation ApiModel, which is used to identify model classes in AOT Processor.

I have recently discovered in openapi generator docs, that annotationLibrary property now defaults to none.

So, solution for that issues should be adding line:

<annotationLibrary>swagger1</annotationLibrary>

to java.xml near line where is useJakartaEe set to true.

I tried it and it did indeed generate swagger ApiModel annotations.

I assume that it will also solve the mentioned issues in the java client after regenerating models.

@brendandburns
Copy link
Contributor

Happy to take a PR for this.

Thanks!

@cache-sk
Copy link
Contributor Author

@brendandburns Created PR #271 as requested..

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants