Skip to content

Commit 5c0ca64

Browse files
author
Joel Collins
committed
Allow boolean values for "required". May be reverted at some point
1 parent 4119de5 commit 5c0ca64

File tree

1 file changed

+20
-8
lines changed

1 file changed

+20
-8
lines changed

tests/schemas/w3c_td_schema.json

Lines changed: 20 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -182,10 +182,16 @@
182182
}
183183
},
184184
"required": {
185-
"type": "array",
186-
"items": {
187-
"type": "string"
188-
}
185+
"oneOf": [{
186+
"type": "array",
187+
"items": {
188+
"type": "string"
189+
}
190+
},
191+
{
192+
"type": "boolean"
193+
}
194+
]
189195
}
190196
}
191197
},
@@ -517,10 +523,16 @@
517523
}
518524
},
519525
"required": {
520-
"type": "array",
521-
"items": {
522-
"type": "string"
523-
}
526+
"oneOf": [{
527+
"type": "array",
528+
"items": {
529+
"type": "string"
530+
}
531+
},
532+
{
533+
"type": "boolean"
534+
}
535+
]
524536
}
525537
},
526538
"required": [

0 commit comments

Comments
 (0)