Skip to content

Instantly share code, notes, and snippets.

@polentino
Created September 20, 2022 06:09
Show Gist options
  • Save polentino/1744f1260251f89709107a8c9b1514ce to your computer and use it in GitHub Desktop.
Save polentino/1744f1260251f89709107a8c9b1514ce to your computer and use it in GitHub Desktop.
[BUG][scala-sttp] using APIKeyQuery and APIKeyHeader simultaneously generates invalid code
{
"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