Skip to content

Commit

Permalink
Use api-key instead of api_key as example header name (OAI#3226)
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 authored and charjr committed Apr 27, 2023
1 parent aba43bc commit a304b30
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 a304b30

Please sign in to comment.