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

Enums with string values return the enum key instead #115

Open
justinrusso opened this issue Oct 7, 2023 · 0 comments
Open

Enums with string values return the enum key instead #115

justinrusso opened this issue Oct 7, 2023 · 0 comments
Labels
bug Something isn't working
Milestone

Comments

@justinrusso
Copy link

Given this enum:

public enum Stage {
  Colorless = "colorless",

  Red = "red",
  Green = "green",
  Lime = "lime",
  Blue = "blue",
  LightBlue = "light_blue",
  Gray = "gray",
  LightGray = "light_gray",
  Yellow = "yellow",
  Purple = "purple",
  Magenta = "magenta",
  Pink = "pink",
  White = "white",
  Black = "black",
  Brown = "brown",
  Cyan = "cyan",
  Orange = "orange";
}

Attempting to use Stage.LightBlue results in a value of lightblue.

@kindlich kindlich added this to the v1.0.0 milestone Jun 8, 2024
@kindlich kindlich added the bug Something isn't working label Jun 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants