Skip to content

Commit c1bbe1f

Browse files
committed
test minItems when its value has a decimal but is still an integer
1 parent 8a12994 commit c1bbe1f

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

tests/draft2019-09/minItems.json

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,5 +24,21 @@
2424
"valid": true
2525
}
2626
]
27+
},
28+
{
29+
"description": "minItems validation with a decimal",
30+
"schema": {"minItems": 1.0},
31+
"tests": [
32+
{
33+
"description": "longer is valid",
34+
"data": [1, 2],
35+
"valid": true
36+
},
37+
{
38+
"description": "too short is invalid",
39+
"data": [],
40+
"valid": false
41+
}
42+
]
2743
}
2844
]

0 commit comments

Comments
 (0)