From 85f52a455d82e32c6c0e66d6ddb26fec5ec5cbd9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9rome=20Perrin?= Date: Sat, 1 Apr 2023 22:34:48 +0900 Subject: [PATCH] openapi.yaml: use api-key for header name Headers with _ are stripped by some web servers. See also https://github.com/OAI/OpenAPI-Specification/issues/3225 --- src/main/resources/openapi.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/resources/openapi.yaml b/src/main/resources/openapi.yaml index 73697c1b..eb062270 100644 --- a/src/main/resources/openapi.yaml +++ b/src/main/resources/openapi.yaml @@ -259,7 +259,7 @@ paths: description: '' operationId: deletePet parameters: - - name: api_key + - name: api-key in: header description: '' required: false @@ -815,5 +815,5 @@ components: 'read:pets': read your pets api_key: type: apiKey - name: api_key + name: api-key in: header