-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(reducer): retain root-defined security definitions (#791)
- Loading branch information
Showing
3 changed files
with
81 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
{ | ||
"openapi": "3.0.3", | ||
"info": { | ||
"version": "1.0.0", | ||
"title": "Example API definition with a root-defined `security` setup." | ||
}, | ||
"servers": [ | ||
{ | ||
"url": "https://httpbin.org" | ||
} | ||
], | ||
"security": [ | ||
{ | ||
"apiKey_query": [] | ||
} | ||
], | ||
"paths": { | ||
"/anything/apiKey": { | ||
"get": { | ||
"summary": "Query parameter", | ||
"description": "`apiKey` auth will be supplied within an `apiKey` query parameter.", | ||
"responses": { | ||
"200": { | ||
"description": "OK" | ||
} | ||
} | ||
}, | ||
"post": { | ||
"summary": "Cookie", | ||
"description": "`apiKey` auth will be supplied within an `api_key` cookie.", | ||
"responses": { | ||
"200": { | ||
"description": "OK" | ||
} | ||
}, | ||
"security": [ | ||
{ | ||
"apiKey_cookie": [] | ||
} | ||
] | ||
} | ||
} | ||
}, | ||
"components": { | ||
"securitySchemes": { | ||
"apiKey_cookie": { | ||
"type": "apiKey", | ||
"in": "cookie", | ||
"name": "api_key", | ||
"description": "An API key that will be supplied in a named cookie. https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.3.md#security-scheme-object" | ||
}, | ||
"apiKey_query": { | ||
"type": "apiKey", | ||
"in": "query", | ||
"name": "apiKey", | ||
"description": "An API key that will be supplied in a named query parameter. https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.3.md#security-scheme-object" | ||
} | ||
} | ||
} | ||
} |
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
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