Closed
Description
There are two issues in java client since version 20.0.0 about problems with native build due not registering model during processAot task:
- Version 20.0.0 is not registering model in processAot task java#3134
- NullPointerException when compiled to Spring Native binary java#3271
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.
Metadata
Metadata
Assignees
Labels
No labels