Closed n8ores closed 9 months ago
onEdit onAdd onDelete functions should also receive the (full JSON object) with the change applied.
Currently, it only supplies src (the old object) and newValue, oldValue, depth.
{ "newValue": "hello", "oldValue": 7, "depth": 1, "src": [ { "id": 0 } ], "indexOrName": "x", "parentType": "object" }
By providing the new object, we can pass that to a JSON Schema and have it automatically validated.
src is the modified json object. So this feature already exists.
onEdit onAdd onDelete functions should also receive the (full JSON object) with the change applied.
Currently, it only supplies src (the old object) and newValue, oldValue, depth.
{ "newValue": "hello", "oldValue": 7, "depth": 1, "src": [ { "id": 0 } ], "indexOrName": "x", "parentType": "object" }
By providing the new object, we can pass that to a JSON Schema and have it automatically validated.