Skip to content

Commit 258a7d2

Browse files
committed
Add explicit test case for merging items schemas
1 parent 9bce86a commit 258a7d2

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

tests/test_canonicalise.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -451,6 +451,16 @@ def test_canonicalises_to_expected(schema, expected):
451451
"additionalItems": FALSEY,
452452
},
453453
),
454+
(
455+
[
456+
{"items": [{}, {"type": "string"}], "additionalItems": False},
457+
{"items": {"type": "string"}},
458+
],
459+
{
460+
"items": [{"type": "string"}, {"type": "string"}],
461+
"additionalItems": FALSEY,
462+
},
463+
),
454464
]
455465
+ [
456466
([{lo: 0, hi: 9}, {lo: 1, hi: 10}], {lo: 1, hi: 9})

0 commit comments

Comments
 (0)