Separate naming schemes for field names and enum members
See original GitHub issueThe function constant_name
doesn’t handle values with spaces or dashes between words, example
<xs:enumeration value="tested below and above"/>
<xs:enumeration value="non-intrusive"/>
Issue Analytics
- State:
- Created 3 years ago
- Comments:8 (5 by maintainers)
Top Results From Across the Web
C# naming convention for enum and matching property
EDIT2 (May 2010): My favorite solution is to pluralize the enum type name, as suggested by Chris S. According to MS guidelines, this...
Read more >Enum Type Naming Convention - No Longer Set
Naming conventions are very much a personal preference. ... Directly underneath the enum type name is the list of enum members that belong ......
Read more >Official Naming Convention for Enums - Google Groups
Enums are types, so they should be named using UpperCamelCase like classes. The enum values are constants, so they should be named using...
Read more >C# - How to Display Friendly Names for Enumerations
To get the enumeration elements names, we will iterate over the names of the Enumeration type, append each name to a string builder...
Read more >Naming conventions for enum values · Issue #530 - GitHub
There are no naming conventions that cover enum values. I've seen several different styles in our APIs so far: MY_VALUE; my-value; my_value.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Thanks for reporting @untereiner
I added a separate convention config for constant names and a new naming scheme
screamingSnakeCase
https://xsdata.readthedocs.io/en/latest/api/codegen.html
yeah I am thinking we need a standalone convention config for constant names