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
This not only affects C#, but also other generators like Java Spring. I followed the path where the enum values are coming from and ended up in Swagger's OpenAPI parser, i.e. it's not a problem of the OpenAPI generator itself, but from on of its dependencies. There is an issue for this swagger-api/swagger-parser#1205.
Workaround: Explicitly mark your enum values as strings. Example:
I have 3.0.1 Open api Spec with enum which constains ON/OFF values
It's generated as True/False for scharp rest client
The text was updated successfully, but these errors were encountered: