| 1 |
[ |
| 2 |
{ |
| 3 |
"description": "propertyDependencies with additionalProperties", |
| 4 |
"schema": { |
| 5 |
"$schema": "https://json-schema.org/v1", |
| 6 |
"properties" : {"foo2" : {}}, |
| 7 |
"propertyDependencies": { |
| 8 |
"foo" : {}, |
| 9 |
"foo2": { |
| 10 |
"bar": { |
| 11 |
"properties": { |
| 12 |
"buz": {} |
| 13 |
} |
| 14 |
} |
| 15 |
} |
| 16 |
}, |
| 17 |
"additionalProperties": false |
| 18 |
}, |
| 19 |
"tests": [ |
| 20 |
{ |
| 21 |
"description": "additionalProperties doesn't consider propertyDependencies properties" , |
| 22 |
"data": {"foo": ""}, |
| 23 |
"valid": false |
| 24 |
}, |
| 25 |
{ |
| 26 |
"description": "additionalProperties can't see buz even when foo2 is present", |
| 27 |
"data": {"foo2": "bar", "buz": ""}, |
| 28 |
"valid": false |
| 29 |
}, |
| 30 |
{ |
| 31 |
"description": "additionalProperties can't see buz", |
| 32 |
"data": {"buz": ""}, |
| 33 |
"valid": false |
| 34 |
} |
| 35 |
] |
| 36 |
} |
| 37 |
] |