openapi-snippet icon indicating copy to clipboard operation
openapi-snippet copied to clipboard

Missing header generation with compound security header.

Open wRLSS opened this issue 1 year ago • 0 comments

OpenAPI 3.0 supports usage of multiple API Keys.

components:
  securitySchemes:
    apiKey:
      type: apiKey
      in: header
      name: X-API-KEY
    appId:
      type: apiKey
      in: header
      name: X-APP-ID
security:
  - apiKey: []
    appId:  []

However, X-APP-ID header is not properly appended to codesnippet during generation producing

curl --request POST \
  --url https://petstore.com/api/v1/pet/ \
  --header 'X-API-Key: REPLACE_KEY_VALUE' \
  --header 'content-type: application/json' \
  --data '{}'

wRLSS avatar Jul 04 '24 12:07 wRLSS