Skip to content

Commit eb33105

Browse files
committed
Clarify that "only one" means "at least one"
1 parent a04a580 commit eb33105

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

versions/3.1.1.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -326,7 +326,7 @@ The `security` field describes how requests are authorized:
326326

327327
- If omitted, then nothing can be inferred about the authorization requirements; the behaviour is implementation-defined.
328328
- If present but empty (`security: []`), then the behaviour is undefined.
329-
- Otherwise, it is an array of [Security Requirement Objects](#security-requirement-object), only one of which needs to be satisfied for the request to be authorized.
329+
- Otherwise, it is an array of [Security Requirement Objects](#security-requirement-object), at least one of which needs to be satisfied for the request to be authorized.
330330

331331
Because the empty Security Requirement Object `{}` will always be satisfied, any `security` list that includes `{}` will allow all requests. In particular, `security: [{}]` means that no security schemes are in use (also known as "no security").
332332

@@ -3917,7 +3917,7 @@ The name used for each property MUST correspond to a security scheme declared in
39173917
Security Requirement Objects that contain multiple schemes require that all schemes MUST be satisfied for a request to be authorized.
39183918
This enables support for scenarios where multiple query parameters or HTTP headers are required to convey security information.
39193919

3920-
When a non-empty list of Security Requirement Objects is defined on the [OpenAPI Object](#openapi-object) or [Operation Object](#operation-object), only one of the Security Requirement Objects in the list needs to be satisfied to authorize the request; see [the `security` field](#the-security-field).
3920+
When a non-empty list of Security Requirement Objects is defined on the [OpenAPI Object](#openapi-object) or [Operation Object](#operation-object), at least one of the Security Requirement Objects in the list needs to be satisfied for the request to be authorized; see [the `security` field](#the-security-field).
39213921

39223922
##### Patterned Fields
39233923

0 commit comments

Comments
 (0)