Skip to content

Commit

Permalink
openapi.yaml: use api-key for header name
Browse files Browse the repository at this point in the history
Headers with _ are stripped by some web servers.

See also OAI/OpenAPI-Specification#3225
  • Loading branch information
perrinjerome committed Apr 1, 2023
1 parent b8e2f32 commit 85f52a4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/resources/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,7 @@ paths:
description: ''
operationId: deletePet
parameters:
- name: api_key
- name: api-key
in: header
description: ''
required: false
Expand Down Expand Up @@ -815,5 +815,5 @@ components:
'read:pets': read your pets
api_key:
type: apiKey
name: api_key
name: api-key
in: header

0 comments on commit 85f52a4

Please sign in to comment.