YYsuni / react18-json-view

JSON viewer for react18
https://jv.yysuni.com/
MIT License
236 stars 15 forks source link

Feature/Request #13

Closed n8ores closed 9 months ago

n8ores commented 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.

n8ores commented 9 months ago

src is the modified json object. So this feature already exists.