Skip to content

Case sensitive enum values #704

Description

@tristancaron

When an XSD file as the following value

<xs:enumeration value="TODO" />
<xs:enumeration value="todo" />

The code generated becomes

enum ModelType {
  // Default
  MODEL_TYPE_UNSPECIFIED = 0;
  MODEL_TYPE_TODO = 1;
  MODEL_TYPE_TODO = 1;
}

How could this be mitigated?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions