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

Add support for x-enum-values #25

Open
michaelaird opened this issue Aug 6, 2020 · 1 comment
Open

Add support for x-enum-values #25

michaelaird opened this issue Aug 6, 2020 · 1 comment

Comments

@michaelaird
Copy link

Would it be possible to add support for this style of enums:

          "breakerType": {
            "enum": [
              "0",
              "1",
              "2",
              "3"
            ],
            "type": "integer",
            "description": "If populated, this item has a breaker type corresponding to the given value. See DestinyBreakerTypeDefinition for more details.",
            "format": "int32",
            "nullable": true,
            "x-enum-values": [
              {
                "numericValue": "0",
                "identifier": "None"
              },
              {
                "numericValue": "1",
                "identifier": "ShieldPiercing"
              },
              {
                "numericValue": "2",
                "identifier": "Disruption"
              },
              {
                "numericValue": "3",
                "identifier": "Stagger"
              }
            ],
            "x-enum-is-bitmask": false
          },

This is used by the Bungie OpenAPI definition (https://github.com/Bungie-net/api/blob/master/openapi.json)

@zijianhuang
Copy link
Owner

Likely, as the next stage of development is focused on enum stuffs.

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

No branches or pull requests

2 participants