Skip to content

Commit

Permalink
Use api-key instead of api_key as example header name
Browse files Browse the repository at this point in the history
Several HTTP servers drop http headers with underscores.

Fixes OAI#3225
  • Loading branch information
perrinjerome committed Apr 1, 2023
1 parent b31554a commit 9bf45ce
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions versions/3.1.1.md
Original file line number Diff line number Diff line change
Expand Up @@ -563,7 +563,7 @@ my.org.User
"securitySchemes": {
"api_key": {
"type": "apiKey",
"name": "api_key",
"name": "api-key",
"in": "header"
},
"petstore_auth": {
Expand Down Expand Up @@ -640,7 +640,7 @@ components:
securitySchemes:
api_key:
type: apiKey
name: api_key
name: api-key
in: header
petstore_auth:
type: oauth2
Expand Down Expand Up @@ -3226,14 +3226,14 @@ scheme: basic
```json
{
"type": "apiKey",
"name": "api_key",
"name": "api-key",
"in": "header"
}
```

```yaml
type: apiKey
name: api_key
name: api-key
in: header
```
Expand Down

0 comments on commit 9bf45ce

Please sign in to comment.