question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Separate naming schemes for field names and enum members

See original GitHub issue

The 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:closed
  • Created 3 years ago
  • Comments:8 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
tefracommented, Feb 14, 2021

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

0reactions
tefracommented, Feb 12, 2021

yeah I am thinking we need a standalone convention config for constant names

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found