Skip to content

Conversation

milgner
Copy link
Contributor

@milgner milgner commented Nov 29, 2016

This hopefully closes #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. 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.

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.
@grape-bot
Copy link

grape-bot commented Nov 29, 2016

<tr>
  <td>:warning:</td>
  <td data-sticky="false">There’re library changes, but not tests. That’s OK as long as you’re refactoring existing code.</td>
</tr>
<tr>
  <td>:warning:</td>
  <td data-sticky="false">Unless you’re refactoring existing code, please update CHANGELOG.md.</td>
</tr>
2 Warnings

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

Copy link
Member

@LeFnord LeFnord left a 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

@milgner
Copy link
Contributor Author

milgner commented Nov 29, 2016

@LeFnord alright, no problem, I'll add specs and a Changelog entry (probably tomorrow evening).

@LeFnord
Copy link
Member

LeFnord commented Dec 17, 2016

@milgner … some progress on it?

@LeFnord
Copy link
Member

LeFnord commented Jan 12, 2017

hi @milgner … again, any progress on it, would be nice to mörge it

LeFnord pushed a commit that referenced this pull request Sep 26, 2017
* Fix mounting APIs in route_param namespaces

* Added missing tests, based on code from

#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
hara-y-u pushed a commit to hara-y-u/grape-swagger that referenced this pull request Dec 8, 2017
* 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
@milgner milgner closed this Mar 6, 2018
LeFnord pushed a commit to LeFnord/grape-swagger that referenced this pull request Feb 9, 2019
* 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
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 this pull request may close these issues.

Nested dynamic napespace problem (crash)
3 participants