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
Where it is using the numerical part only, it would be really helpful if you could replace the LHS part with the actual String representation as shown in commented code above.
Thanks
The text was updated successfully, but these errors were encountered:
The workaround for this is to force Swagger to describe enums as strings instead of integers.
You do that by adding c.DescribeAllEnumsAsStrings(); inside the services.AddSwaggerGen(c => ....
Hi,
I recently observed that it is generating Enums as following:
Where it is using the numerical part only, it would be really helpful if you could replace the LHS part with the actual String representation as shown in commented code above.
Thanks
The text was updated successfully, but these errors were encountered: