Skip to content

Commit b714a18

Browse files
committed
draft-06: not keyword with boolean schemas
1 parent b6b00f9 commit b714a18

File tree

1 file changed

+22
-1
lines changed

1 file changed

+22
-1
lines changed

tests/draft6/not.json

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,27 @@
9191
"valid": true
9292
}
9393
]
94+
},
95+
{
96+
"description": "not with boolean schema true",
97+
"schema": {"not": true},
98+
"tests": [
99+
{
100+
"description": "any value is invalid",
101+
"data": "foo",
102+
"valid": false
103+
}
104+
]
105+
},
106+
{
107+
"description": "not with boolean schema false",
108+
"schema": {"not": false},
109+
"tests": [
110+
{
111+
"description": "any value is valid",
112+
"data": "foo",
113+
"valid": true
114+
}
115+
]
94116
}
95-
96117
]

0 commit comments

Comments
 (0)