Skip to content

OpenAPI .json - replace "oneOf" with "allOf"? #102

Closed Answered by dealloc
stnokott asked this question in Q&A
Discussion options

You must be logged in to vote

there's currently no specific reason we're using oneOf aside from the OpenAPI generator generating this by default.
I'd have to look into if/how this can be configured by NSwag, but I see no problems in switching from oneOf to allOf especially if this simplifies generated code.

I'd say this can definitely be opened as a feature request

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@stnokott
Comment options

Answer selected by stnokott
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants