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

Enum Name Generator should convert property name to PascalCase #5025

Open
carlin-q-scott opened this issue Nov 15, 2024 · 0 comments
Open

Enum Name Generator should convert property name to PascalCase #5025

carlin-q-scott opened this issue Nov 15, 2024 · 0 comments

Comments

@carlin-q-scott
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant