Skip to content

Commit 0f4b73a

Browse files
committed
One more patternProperties test with boolean schemas
1 parent 8ccbfdc commit 0f4b73a

File tree

3 files changed

+15
-0
lines changed

3 files changed

+15
-0
lines changed

tests/draft2019-09/patternProperties.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,11 @@
141141
"data": {"foo": 1, "bar": 2},
142142
"valid": false
143143
},
144+
{
145+
"description": "object with a property matching both true and false is invalid",
146+
"data": {"foobar":1},
147+
"valid": false
148+
},
144149
{
145150
"description": "empty object is valid",
146151
"data": {},

tests/draft6/patternProperties.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,11 @@
141141
"data": {"foo": 1, "bar": 2},
142142
"valid": false
143143
},
144+
{
145+
"description": "object with a property matching both true and false is invalid",
146+
"data": {"foobar":1},
147+
"valid": false
148+
},
144149
{
145150
"description": "empty object is valid",
146151
"data": {},

tests/draft7/patternProperties.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,11 @@
141141
"data": {"foo": 1, "bar": 2},
142142
"valid": false
143143
},
144+
{
145+
"description": "object with a property matching both true and false is invalid",
146+
"data": {"foobar":1},
147+
"valid": false
148+
},
144149
{
145150
"description": "empty object is valid",
146151
"data": {},

0 commit comments

Comments
 (0)