Skip to content

Commit b6b00f9

Browse files
committed
draft-06: contains keyword with boolean schemas
1 parent 9c05d18 commit b6b00f9

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed

tests/draft6/contains.json

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,5 +59,37 @@
5959
"valid": false
6060
}
6161
]
62+
},
63+
{
64+
"description": "contains keyword with boolean schema true",
65+
"schema": {"contains": true},
66+
"tests": [
67+
{
68+
"description": "any non-empty array is valid",
69+
"data": ["foo"],
70+
"valid": true
71+
},
72+
{
73+
"description": "empty array is invalid",
74+
"data": [],
75+
"valid": false
76+
}
77+
]
78+
},
79+
{
80+
"description": "contains keyword with boolean schema false",
81+
"schema": {"contains": false},
82+
"tests": [
83+
{
84+
"description": "any non-empty array is invalid",
85+
"data": ["foo"],
86+
"valid": false
87+
},
88+
{
89+
"description": "empty array is invalid",
90+
"data": [],
91+
"valid": false
92+
}
93+
]
6294
}
6395
]

0 commit comments

Comments
 (0)