Skip to content

Commit 8c2b46f

Browse files
committed
rework functional tests to better illustrate purpose of keyword
1 parent e595105 commit 8c2b46f

File tree

1 file changed

+9
-6
lines changed

1 file changed

+9
-6
lines changed

tests/draft-next/propertyDependencies.json

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -93,19 +93,22 @@
9393
"description": "disallowing values",
9494
"schema": {
9595
"propertyDependencies": {
96-
"foo": {"bar": false}
96+
"foo": {"bar": {"minProperties": 2}}
9797
}
9898
},
9999
"tests": [
100100
{
101-
"description": "bar is invalid",
102-
"data": {"foo": "bar"},
103-
"valid": false
101+
"description": "bar with 2 properties is valid",
102+
"data": {
103+
"foo": "bar",
104+
"other-foo": "other-bar"
105+
},
106+
"valid": true
104107
},
105108
{
106-
"description": "anything else is valid",
109+
"description": "bar without another property is invalid",
107110
"data": {"foo": "baz"},
108-
"valid": true
111+
"valid": false
109112
}
110113
]
111114
}

0 commit comments

Comments
 (0)