quarkus-openapi-generator icon indicating copy to clipboard operation
quarkus-openapi-generator copied to clipboard

support openapi oneOf / anyOf

Open oliver-b-mazur-db opened this issue 2 years ago • 3 comments

The actual version of quarkus-openapi-generator is using version 5.4.0 of the openAPITools. The openApiTools 5.4.0 does not support openapi oneOf and anyOf. Please update openApiTools to the last stable version 6.0.1 which supports oneOf / anyOf.

oliver-b-mazur-db avatar Aug 17 '22 07:08 oliver-b-mazur-db

@oliver-b-mazur-db it's on my plans to upgrade to 6.x, but since it's a major release, we might have to postpone a little bit to assess the impact.

ricardozanini avatar Aug 17 '22 13:08 ricardozanini

Does this apply to allOf ? It seems like generator is silently ignoring it.

vladaman avatar Aug 30 '22 11:08 vladaman

@vladaman, not sure. I have to look at the code. Suppose it's a feature that depends on 6.x, I'm afraid I can't add. But if it's there, we can add it to the templates.

ricardozanini avatar Aug 30 '22 12:08 ricardozanini

https://github.com/quarkiverse/quarkus-openapi-generator/pull/273 fixes this issue.

hbelmiro avatar Mar 15 '23 12:03 hbelmiro

I still have an issue with oneOf, using OpenAPI Generator - v2.2.1

Specifically I'm trying to generate a model for the BTCPay API, but I get the following error:

cannot find symbol
symbol:   class OneOfstringobject

@hbelmiro @ricardozanini @chberger

gcomte avatar Mar 20 '23 17:03 gcomte

@hbelmiro Do you want me to add a new issue for this?

gcomte avatar Mar 22 '23 08:03 gcomte

@gcomte yes, please.

hbelmiro avatar Mar 22 '23 11:03 hbelmiro