Skip to content

Commit c7d6fc9

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

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

schemas/v3.1/schema.yaml

+2
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ properties:
2323
$ref: '#/$defs/components'
2424
security:
2525
type: array
26+
minItems: 1
2627
items:
2728
$ref: '#/$defs/security-requirement'
2829
tags:
@@ -253,6 +254,7 @@ $defs:
253254
type: boolean
254255
security:
255256
type: array
257+
minItems: 1
256258
items:
257259
$ref: '#/$defs/security-requirement'
258260
servers:

0 commit comments

Comments
 (0)