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

Document enums #20

Open
mxmCherry opened this issue Sep 29, 2021 · 1 comment · Fixed by #21
Open

Document enums #20

mxmCherry opened this issue Sep 29, 2021 · 1 comment · Fixed by #21

Comments

@mxmCherry
Copy link
Contributor

Maybe to be used like this:

expose :enum_one, documentation: { ..., values: [1, 2, 3] }
expose :enum_two, documentation: { ..., values: Model.enum_twos.keys }
@mxmCherry
Copy link
Contributor Author

#21 (comment)

Most likely, both entity fields and route params could use the same 4-column table (with Values col): https://github.com/ruby-grape/grape#values

To be addressed as part of this issue, but later.

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

Successfully merging a pull request may close this issue.

1 participant