Skip to content

Commit a304b30

Browse files
perrinjeromecharjr
authored andcommitted
Use api-key instead of api_key as example header name (#3226)
Several HTTP servers drop http headers with underscores. Fixes #3225
1 parent aba43bc commit a304b30

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

versions/3.1.1.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -563,7 +563,7 @@ my.org.User
563563
"securitySchemes": {
564564
"api_key": {
565565
"type": "apiKey",
566-
"name": "api_key",
566+
"name": "api-key",
567567
"in": "header"
568568
},
569569
"petstore_auth": {
@@ -640,7 +640,7 @@ components:
640640
securitySchemes:
641641
api_key:
642642
type: apiKey
643-
name: api_key
643+
name: api-key
644644
in: header
645645
petstore_auth:
646646
type: oauth2
@@ -3226,14 +3226,14 @@ scheme: basic
32263226
```json
32273227
{
32283228
"type": "apiKey",
3229-
"name": "api_key",
3229+
"name": "api-key",
32303230
"in": "header"
32313231
}
32323232
```
32333233

32343234
```yaml
32353235
type: apiKey
3236-
name: api_key
3236+
name: api-key
32373237
in: header
32383238
```
32393239

0 commit comments

Comments
 (0)