Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

EnableLowerCamelCase doesn't apply to Enum type and Enum values #1557

Open
JeffreyZZ opened this issue Jul 29, 2018 · 1 comment
Open

EnableLowerCamelCase doesn't apply to Enum type and Enum values #1557

JeffreyZZ opened this issue Jul 29, 2018 · 1 comment
Assignees
Labels

Comments

@JeffreyZZ
Copy link

Microsoft REST API Guidelines recommends camelCased for the names of entity, property, enum and enum values. In our OData WebAPI implement, we use EnableLowerCamelCase to help do the CamelCase conversion for the entity’s property name. But it does NOT work for enum values, so we have to name enum value in camelCase as a workaround like this. This is NOT good from C# coding perspective. Is there a better way to solve this problem?

public enum Level
{
    /// <summary>
    /// Low constant
    /// </summary>
    low = 0,

    /// <summary>
    /// Medium constant
    /// </summary>
    medium = 1,

    /// <summary>
    /// High constant
    /// </summary>
    high = 2

}

@biaol-odata biaol-odata added the P3 label Aug 1, 2018
@biaol-odata
Copy link
Contributor

@JeffreyZZ See #1558.
Looks like this is a duplicate of #850?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants