-
Notifications
You must be signed in to change notification settings - Fork 22
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
swagger_doc tag doesn't work #43
Comments
Got some idea from source code
I found a workaround way: RSpec.describe 'mock allocation summary', type: :request, swagger_doc: 'v2/swagger.yml' do
...
path '/post', swagger_document: 'v2/swagger.yml' do
...
end It works but not perfect ??? |
Ah yeah I would have though it would work the way you expected. Looking at the helper:
It seems like it should looking for a document in the following order:
So I'll look at adding a PR to fix this. |
Give #45 a look and see how that works for you. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
As comments or rswag (rspec-rails-swagger based on rswag):
But it doesn't work if I used it with RSpec, like below:
Is there anybody have some idea?
The text was updated successfully, but these errors were encountered: