Created
September 20, 2022 06:09
-
-
Save polentino/1744f1260251f89709107a8c9b1514ce to your computer and use it in GitHub Desktop.
[BUG][scala-sttp] using APIKeyQuery and APIKeyHeader simultaneously generates invalid code
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"openapi": "3.0.2", | |
"info": { | |
"title": "Sample ApPI", | |
"version": "0.1.0" | |
}, | |
"paths": { | |
"/entities/": { | |
"get": { | |
"responses": { | |
"200": { | |
"description": "Successful Response", | |
"content": { | |
"text/plain" : { | |
"schema": { | |
"type": "string" | |
} | |
} | |
} | |
} | |
}, | |
"security": [ | |
{ | |
"APIKeyHeader": [] | |
}, | |
{ | |
"APIKeyQuery": [] | |
} | |
] | |
} | |
} | |
}, | |
"components": { | |
"securitySchemes": { | |
"APIKeyHeader": { | |
"type": "apiKey", | |
"in": "header", | |
"name": "X-Api-Key" | |
}, | |
"APIKeyQuery": { | |
"type": "apiKey", | |
"in": "query", | |
"name": "api_key" | |
} | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment