Skip to content

swagger_doc tag doesn't work #43

Closed
@zddhub

Description

@zddhub

As comments or rswag (rspec-rails-swagger based on rswag):

By default, the operations defined in spec files are added to the first document below. You can override this behavior by adding a swagger_doc tag to the the root example_group in your specs, e.g.

describe '...', swagger_doc: 'v2/swagger.json'

But it doesn't work if I used it with RSpec, like below:

RSpec.describe 'mock allocation summary', type: :request, swagger_doc: 'v2/swagger.yml' do
...
    path '/post' do
...
end

Is there anybody have some idea?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions