Skip to content

Add annotationLibrary to java configuration #270

Closed
@cache-sk

Description

@cache-sk

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions