Skip to content

Make Enum type emit string or underlying type values to document. Fixed #16

@mediabuff

Description

@mediabuff

We default to underlying type for enums alwasy. Add following attributes. Can be configured as classs level or member level.

[AttributeUsage(AttributeTargets.Class | AttributeTargets.Property, AllowMultiple = true)]
public class EnumAsStringProperty : System.Attribute
{
}
[AttributeUsage(AttributeTargets.Property)] // class leve is default. This used to override EnumAsStringProperty as class level
public class EnumAsUnderlyTypeProperty : System.Attribute
{
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions