An example class mapping with enum would be as below:
public class MyClass
{
public MyType MyType {get;set;}
public string FooBar {get;set;}
}
// Example enum strings
public enum MyType
{
[BsonRepresentation(BsonType.String)]
TypeA,
[BsonRepresentation(BsonType.String)]
TypeB,
[BsonRepresentation(BsonType.String)]
Default,
}
Hi @wan , thanks for your the clarification, do you happen to know which is the best way to fix the enums representation in “swashbuckle.aspnetcore” swagger generator?
This is my Enum:
namespace ApmAPI.Models
{
public enum OnboardingState
{