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

Basic authentication headers not added to code samples #353

Closed
1 task done
badsyntax opened this issue Aug 2, 2020 · 0 comments · Fixed by #354
Closed
1 task done

Basic authentication headers not added to code samples #353

badsyntax opened this issue Aug 2, 2020 · 0 comments · Fixed by #354

Comments

@badsyntax
Copy link
Contributor

Describe the bug

When using a basicAuth security schema, the Authorization header is not added to the code samples.

  • - I have checked that my input document is valid OpenAPI 2.0/3.0.x or AsyncAPI 1.x

To Reproduce
Steps to reproduce the behavior:

  1. Command-line: widdershins --language_tabs 'shell:curl' --summary ./bug.yml -o source/index.html.md
  2. My input file: https://gist.github.com/badsyntax/c2eb92b3660bdce3da6186615e20939b
  3. Scroll down to curl -X POST /example
  4. See that the basic auth headers are not added

Expected behavior
I expect to see Authorization: Basic abcd123 similar to bearerAuth

I will send a PR.

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 a pull request may close this issue.

1 participant