-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Doc Update Request: Nested re-usable params #2313
Comments
Definitely a yes on documentation, please PR! We could probably improve the error here. It is trying to coerce a symbol and you get a While |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I'm attempting was attempting to define a re-usable params type and make use of it for a request. The result is I get this:
NameError (uninitialized constant Grape::Validations::Types::SymbolCoercer)
.Here is my re-usable param structure:
Since there was no clear examples in the docs of how to go about it, I was trying things like this - which just gave me errors.
Eventually, I found a pattern that works:
Adding something like this to the documentation would be helpful for others, I think
The text was updated successfully, but these errors were encountered: