Skip to content

Is there a way to $ref enums? #3471

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
heldersepu opened this issue Jul 27, 2017 · 2 comments
Closed

Is there a way to $ref enums? #3471

heldersepu opened this issue Jul 27, 2017 · 2 comments

Comments

@heldersepu
Copy link
Contributor

When we use the same enum multiple times in a controller the same enum data gets added per use.
Is there a way to add the enum to the definitions and only have a reference to it?

@webron
Copy link
Contributor

webron commented Jul 27, 2017

You can only reference an enum from complex objects - meaning only things in body parameters and responses. This changes in the new version of the spec.

@heldersepu
Copy link
Contributor Author

Awesome, looking forward to the new version...

@lock lock bot locked and limited conversation to collaborators Jul 3, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants