Is there a way to display all enums as their string value in swagger instead of their int value?
I want to be able to submit POST actions and put enums according to
ASP NET SOLUTION
In my api docs one enum was still shown as int despite the property being marked with StringEnumConverter. We couldn't afford using the global setting for all enums mentioned above. Adding this line in SwaggerConfig solved the issue:
c.MapType(() => new Schema { type = "string", @enum = Enum.GetNames(typeof(ContactInfoType))});