swagger-api / swagger-api/swagger-ui
Authorization Header not getting displayed in CURL
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 29k
- Forks
- 9.3k
- Avg merge
- 2d 23h
- Merged PRs (30d)
- 25
Description
I am trying to use the Authorization header in the swagger latest version.
You can try the above YAML configuration in Swagger Editor.
You can observe that the Authorization header which I added in the header section is not included in the CURL command.
Help me to add an Authorization header into my API.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the attached openapi.txt in Swagger Editor and reproduce the missing Authorization header in the generated CURL command. Compare the header configuration with the resulting request and confirm the fix by checking that the Authorization header appears in the generated CURL output.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, openapi
- Domain
- api, authentication
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100