dependencies was split into dependentRequired and dependentSchemas.
[
{
- "description": "dependencies",
+ "description": "dependentRequired",
"schema": {
- "dependencies": {"bar": ["foo"]}
+ "dependentRequired": {"bar": ["foo"]}
},
"tests": [
{
]
},
{
- "description": "dependencies with empty array",
+ "description": "dependentRequired with empty array",
"schema": {
- "dependencies": {"bar": []}
+ "dependentRequired": {"bar": []}
},
"tests": [
{
]
},
{
- "description": "multiple dependencies",
+ "description": "multiple dependents required",
"schema": {
- "dependencies": {"quux": ["foo", "bar"]}
+ "dependentRequired": {"quux": ["foo", "bar"]}
},
"tests": [
{
]
},
{
- "description": "multiple dependencies subschema",
+ "description": "multiple dependentSchemas subschema",
"schema": {
- "dependencies": {
+ "dependentSchemas": {
"bar": {
"properties": {
"foo": {"type": "integer"},
]
},
{
- "description": "dependencies with boolean subschemas",
+ "description": "dependentSchemas with boolean subschemas",
"schema": {
- "dependencies": {
+ "dependentSchemas": {
"foo": true,
"bar": false
}
]
},
{
- "description": "empty array of dependencies",
+ "description": "empty array of dependentRequired",
"schema": {
"dependencies": {
"foo": []
{
"description": "dependencies with escaped characters",
"schema": {
- "dependencies": {
+ "dependentRequired": {
"foo\nbar": ["foo\rbar"],
+ "foo\"bar": ["foo'bar"]
+ },
+ "dependentSchemas": {
"foo\tbar": {
"minProperties": 4
},
- "foo'bar": {"required": ["foo\"bar"]},
- "foo\"bar": ["foo'bar"]
+ "foo'bar": {"required": ["foo\"bar"]}
}
},
"tests": [
