Skip to content
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

Request headers missing when using :open_api #469

Open
felixletkemann opened this issue Mar 20, 2020 · 0 comments
Open

Request headers missing when using :open_api #469

felixletkemann opened this issue Mar 20, 2020 · 0 comments

Comments

@felixletkemann
Copy link

In case I use :html or :json or :markdown as config.format option, I always see the request headers "Authorization" and "Content-Type" in the document. As soon as I select open_api, there are just the response headers in the rendered YAML file.
When I put a debug point (binding.pry) in lib/rspec_api_documentation/writers/open_api_writer.rb -> requests method, I can clearly see, that these headers are there. Somehow they get lost afterwards.
So far, I have not been able to find out where this gets lost. In case I find out, I will post the solution here.

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

No branches or pull requests

1 participant