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 e595105 commit 8c2b46fCopy full SHA for 8c2b46f
tests/draft-next/propertyDependencies.json
@@ -93,19 +93,22 @@
93
"description": "disallowing values",
94
"schema": {
95
"propertyDependencies": {
96
- "foo": {"bar": false}
+ "foo": {"bar": {"minProperties": 2}}
97
}
98
},
99
"tests": [
100
{
101
- "description": "bar is invalid",
102
- "data": {"foo": "bar"},
103
- "valid": false
+ "description": "bar with 2 properties is valid",
+ "data": {
+ "foo": "bar",
104
+ "other-foo": "other-bar"
105
+ },
106
+ "valid": true
107
108
- "description": "anything else is valid",
109
+ "description": "bar without another property is invalid",
110
"data": {"foo": "baz"},
- "valid": true
111
+ "valid": false
112
113
]
114
0 commit comments