Enums in error responses lead to invalid code #2435
Labels
enhancement
New feature or request
generator
Issues or improvements relater to generation capabilities.
Milestone
When returning enums from an error like this
it generates invalid C# (at least, haven't tried with the other languages)
the error given is
'HealthStatus' is a type, which is not valid in the given context
. There is no CreateFromDiscriminatorValue to call.The text was updated successfully, but these errors were encountered: