-
Notifications
You must be signed in to change notification settings - Fork 694
Open
Labels
Description
When a new element in an array is created its dependencies are not evaluated.
Steps to reproduce
Using this schema:
{
"definitions": {
"measurement": {
"type": "object",
"properties": {
"key": {"type": "string"},
"value": {"type": "string"},
"optional": {
"type": "string",
"options": {
"dependencies": { "root.toggle": true }
}
}
}
}
},
"type": "object",
"properties": {
"array": {
"type": "array",
"items": {"$ref": "#/definitions/measurement"}
},
"toggle": {
"type": "boolean",
"format": "checkbox",
"default": false
}
}
}
add a new item to array
while toggle
is unchecked.
Expected results:
New item in array
is created without optional
field showing
Actual results:
New item in array
contains optional
field.