-
Notifications
You must be signed in to change notification settings - Fork 472
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
override type with documentation parameter #443
Comments
@scauglog … yeap, multi types are not supported at the moment I didn't found a solution yet, but maybe you? |
swagger don't allow multi type. But we could allow user to specify the type they prefer when generating the doc or select the first type provided in the Array as the type or both. |
@scauglog … yeap I know, that's why again … make a proposal as PR 😉 |
I noticed that according to the readme the default value provided in the documentation hash override the grape default |
#444 solved it |
multi types seems not well supported, so I would like to use documentation hash to specify which type the documentation should use. for example
So I modified in
lib/grape-swagger/doc_methods/parse_params
the "call" method (line 9 to 13)before
after
this work for me. But maybe there is a good reason to merge settings in documentation or to do this merge after calling DataType.
(edit: you shouldn't delete the documentation key after merging)
The text was updated successfully, but these errors were encountered: