Skip to content

Commit 2064f63

Browse files
committed
feat(schema): update empty security array constraint
based on discussions * OAI#3938 (comment) * OAI#4007
1 parent 4e9d2b3 commit 2064f63

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

schemas/v3.0/schema.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ properties:
2020
$ref: '#/definitions/Server'
2121
security:
2222
type: array
23+
minItems: 1
2324
items:
2425
$ref: '#/definitions/SecurityRequirement'
2526
tags:
@@ -567,6 +568,7 @@ definitions:
567568
default: false
568569
security:
569570
type: array
571+
minItems: 1
570572
items:
571573
$ref: '#/definitions/SecurityRequirement'
572574
servers:

0 commit comments

Comments
 (0)