#1047 Enum Normalization/Standard

Sanket J Fri 24 Mar 2023

Do we have list of standard enum format as an examples can be used? I am working on normalizing enum in our current database which requires validation check to make sure we adhere to standard on scenario basis.

Also any scenario can my enum start with number or instead of number I have to use word, for example instead of 1, i use one, 2 - two

Brian Frank Fri 24 Mar 2023

Historically there were just any string value. But I think going forward that we should require enum values to be valid tag names. The benefit of that restriction is that you can use them as key names in dicts and compile them into enum types in different programming languages. We have a few that don't fit that rule though such as primaryFunction and phase.

Login or Signup to reply.