-
Couldn't load subscription status.
- Fork 480
fix: Use mount_path to narrow down urls_for #924
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
fix: Use mount_path to narrow down urls_for #924
Conversation
670a236 to
e8d0776
Compare
86231f8 to
ac8b4d2
Compare
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 @chibicco … please rebase against master and add a Changelog entry
ac8b4d2 to
078bb34
Compare
|
Thank you for your review : ) |
078bb34 to
5afe75a
Compare
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 @chibicco
| def urls_for(api_class) | ||
| api_class.routes | ||
| .map(&:path) | ||
| .select { |e| e.include?('doc') } |
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.
This breaks the specs generation
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.
mmh, it is gone … what do you mean?
Overview
Hello, thanks for this useful library !
When you run
rake oapi:fetch, All endpoints that include the path name doc will be caught.Narrow down the target path using mount_path.
Related items