From d52d3a232f55cab0e752e618e9c0886c06b9748e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9rome=20Perrin?= Date: Fri, 14 Apr 2023 01:58:33 +0900 Subject: [PATCH] Use `api-key` instead of `api_key` as example header name (#3226) Several HTTP servers drop http headers with underscores. Fixes #3225 --- versions/3.1.1.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/versions/3.1.1.md b/versions/3.1.1.md index be39af7f91..d90be2b090 100644 --- a/versions/3.1.1.md +++ b/versions/3.1.1.md @@ -563,7 +563,7 @@ my.org.User "securitySchemes": { "api_key": { "type": "apiKey", - "name": "api_key", + "name": "api-key", "in": "header" }, "petstore_auth": { @@ -640,7 +640,7 @@ components: securitySchemes: api_key: type: apiKey - name: api_key + name: api-key in: header petstore_auth: type: oauth2 @@ -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 ```