Skip to content

[BUG][JAXRS-spec] useOneOfInterfaces option causes compilation error #17419

@jerui1

Description

@jerui1
Description

When using the useOneOfInterfaces option, the generated code does not compile.

Children classes are OK, but the generated parent is a class instead of an interface.

openapi-generator version

I've reproduces the issue with openapi-generator-maven-plugin :
7.0.1, 7.1.0
6.6.0

The option does not seem supported on previous releases.

OpenAPI declaration file content or url

OpenAPI spec :

https://gist.github.com/jerui1/da605832f67667e32a96f5c4d346640e

Sample maven project to reproduce :

openapigen-oneofbug.zip

Generation Details

mvn clean install

(I've tried using Java 17 or Java 21)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions