You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In particular, Swagger-UI only handles enums correctly if allOf is used, but currently oneOf is generated. The documentation for "AllowReferencesWithProperties" already mentions that "allOf/oneOf with $ref" may be used
the piece of code you reference doesn't seems to fix the issue of the missing dropbox for the enum parameters (you linked this issue in there), it only applies to the models and not to the api parameters
Due to not-great ecosystem support of allOf/anyOf/oneOf, it would be helpful to be able to configure which to use when generating a construct like
In particular, Swagger-UI only handles enums correctly if
allOf
is used, but currentlyoneOf
is generated. The documentation for "AllowReferencesWithProperties" already mentions that "allOf/oneOf with $ref" may be usedThis would resolve the NSwag issue: RicoSuter/NSwag#3645
edit: It looks like the relevant code is here
The text was updated successfully, but these errors were encountered: