We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9c05d18 commit b6b00f9Copy full SHA for b6b00f9
tests/draft6/contains.json
@@ -59,5 +59,37 @@
59
"valid": false
60
}
61
]
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
83
84
+ "description": "any non-empty array is invalid",
85
86
87
88
89
90
91
92
93
94
95
0 commit comments