Skip to content

Allow defining Enums ahead of time #21

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

Closed
dbanty opened this issue Mar 22, 2020 · 0 comments
Closed

Allow defining Enums ahead of time #21

dbanty opened this issue Mar 22, 2020 · 0 comments
Labels
✨ enhancement New feature or improvement
Milestone

Comments

@dbanty
Copy link
Collaborator

dbanty commented Mar 22, 2020

Because Enum isn't a real schema type in OpenAPI, we currently create them by making up a name from the property that defined them. That means if you have the same Enum in multiple places with different property names, you'll get multiple enums. Member names are also made up from the values, so those are sometimes not very descriptive.

We should add a section to config.yml that lets users define Enums, then check any Enum we come across to see if its values match the values of a known Enum. If they do, use that Enum.

@dbanty dbanty added the ✨ enhancement New feature or improvement label Mar 22, 2020
@dbanty dbanty added this to the 0.3.0 milestone Apr 25, 2020
@dbanty dbanty closed this as completed Apr 25, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
✨ enhancement New feature or improvement
Projects
None yet
Development

No branches or pull requests

1 participant