Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions definitions/3.0.0/securityRequirements.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,22 @@
},
{
"$ref": "http://asyncapi.com/definitions/3.0.0/SecurityScheme.json"
},
{
"type": "array",
"description": "Array of security schemes that must all be satisfied (AND logic)",
"items": {
"oneOf": [
{
"$ref": "http://asyncapi.com/definitions/3.0.0/Reference.json"
},
{
"$ref": "http://asyncapi.com/definitions/3.0.0/SecurityScheme.json"
}
]
},
"minItems": 1,
"uniqueItems": true
}
]
},
Expand Down
18 changes: 17 additions & 1 deletion definitions/3.1.0/securityRequirements.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"$schema": "http://json-schema.org/draft-07/schema#",
"$id": "http://asyncapi.com/definitions/3.1.0/securityRequirements.json",
"description": "An array representing security requirements.",
"description": "An array representing security requirements. Single-level array items represent OR logic (any one scheme satisfies the requirement). Nested arrays represent AND logic (all schemes in the inner array must be satisfied). The outer array always represents OR logic between its elements.",
"type": "array",
"items": {
"oneOf": [
Expand All @@ -10,6 +10,22 @@
},
{
"$ref": "http://asyncapi.com/definitions/3.1.0/SecurityScheme.json"
},
{
"type": "array",
"description": "An array of security schemes that must all be satisfied (AND logic).",
"items": {
"oneOf": [
{
"$ref": "http://asyncapi.com/definitions/3.1.0/Reference.json"
},
{
"$ref": "http://asyncapi.com/definitions/3.1.0/SecurityScheme.json"
}
]
},
"minItems": 1,
"uniqueItems": true
}
]
}
Expand Down
Loading