-
Notifications
You must be signed in to change notification settings - Fork 478
Fix mounting APIs in route_param namespaces #543
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
Conversation
This hopefully closes [ruby-grape#267](ruby-grape#267), which describes a scenario like: route_param :vendor do mount Endpoints::Events end The fix is very barebone but resolved the issue for me.
Here's an example of a CHANGELOG.md entry: * [#543](https://github.com/ruby-grape/grape-swagger/pull/543): Fix mounting APIs in route_param namespaces - [@milgner](https://github.com/milgner). Generated by 🚫 danger |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks @milgner, looks good to me, but specs and changelog entry are missing
@LeFnord alright, no problem, I'll add specs and a Changelog entry (probably tomorrow evening). |
@milgner … some progress on it? |
hi @milgner … again, any progress on it, would be nice to mörge it |
* Fix mounting APIs in route_param namespaces * Added missing tests, based on code from ruby-grape#543 by @milgner Applied on top of latest master * Added changelog * Fix CHANGELOG.md * Cleanup rubocop offences related to this change * Fix rubocop version * Re-added * Your contribution here to CHANGELOG.md
* Fix mounting APIs in route_param namespaces * Added missing tests, based on code from ruby-grape#543 by @milgner Applied on top of latest master * Added changelog * Fix CHANGELOG.md * Cleanup rubocop offences related to this change * Fix rubocop version * Re-added * Your contribution here to CHANGELOG.md
This hopefully closes #267,
which describes a scenario like:
The fix is very barebone but resolved the issue for me. Please note that I don't have any idea what I'm doing 😉 Both Grape itself as well as the Swagger integration are very complex and the only thing I did was to look at exceptions and fix the incoming data in a way that would make them go away and finally generate some documentation 😆
Everything looks like it's supposed to look but there may be other scenarios that are failing now. So feel free to suggest improvements or add amendments as necessary.