Enum Name Generator should convert property name to PascalCase
Author: carlin-q-scottCreated Nov 15, 2024Updated Aug 4, 2026
Labelstype: enhancement
Json properties are usually defined using camelCase but dotnet compiler takes issue with using camelCase for enum definitions:
Warning (active) CS8981 The type name 'attributes' only contains lower-cased ascii characters. Such names may become reserved for the language.
The enum should have been named using PascalCase to adhere to C# naming conventions.
Open API v3 schema (from Atlassian):
"GlobalScopeBean": {
"additionalProperties": false,
"properties": {
"attributes": {
"description": "Defines the behavior of the option in the global context.If notSelectable is set, the option cannot be set as the field's value. This is useful for archiving an option that has previously been selected but shouldn't be used anymore.If defaultValue is set, the option is selected by default.",
"items": {
"enum": [
"notSelectable",
"defaultValue"
],
"type": "string"
},
"type": "array",
"uniqueItems": true
}
},
"type": "object"
},https://developer.atlassian.com/cloud/jira/platform/rest/v2/intro/#about
Source: RicoSuter/NSwag