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

[core] support for 'x-enum-varnames' for enums in arrays #1701

Closed
jmini opened this issue Dec 18, 2018 · 2 comments
Closed

[core] support for 'x-enum-varnames' for enums in arrays #1701

jmini opened this issue Dec 18, 2018 · 2 comments

Comments

@jmini
Copy link
Member

jmini commented Dec 18, 2018

Description

While I was working on #1693 I have discovered an other case that is not working with x-enum-varnames: when the enum is defined in a list.

openapi-generator version

4.0.0-SNAPSHOT

OpenAPI declaration file content or url
    SomeObject:
      type: object
      properties:
        someProperty:
          type: array
          items:
            type: integer
            format: int64
            enum:
              - 20
              - 30
              - 40
            x-enum-varnames:
              - TWENTY
              - THIRTY
              - FORTY
@auto-labeler
Copy link

auto-labeler bot commented Dec 18, 2018

👍 Thanks for opening this issue!
🏷 I have applied any labels matching special text in your issue.

Please review the labels and make any necessary changes.

@jmini jmini changed the title [core] Description [core] support for 'x-enum-varnames' for enums in arrays Dec 18, 2018
@jmini jmini closed this as completed Dec 20, 2018
@jmini
Copy link
Member Author

jmini commented Dec 20, 2018

PR #1703 is merged

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

1 participant