openapiv3/security_requirement.rs
1use indexmap::IndexMap;
2
3/// Lists the required security schemes to execute this operation.
4/// The name used for each property MUST correspond to a security
5/// scheme declared in the Security Schemes under the Components Object.
6///
7/// Security Requirement Objects that contain multiple schemes require
8/// that all schemes MUST be satisfied for a request to be authorized.
9/// This enables support for scenarios where multiple query parameters or
10/// HTTP headers are required to convey security information.
11///
12/// When a list of Security Requirement Objects is defined on the
13/// Open API object or Operation Object, only one of
14/// Security Requirement Objects in the list needs to be satisfied
15/// to authorize the request.
16pub type SecurityRequirement = IndexMap<String, Vec<String>>;