-
-
Notifications
You must be signed in to change notification settings - Fork 33
Description
Suggestion
While evaluating json-edit-react as a possible replacement for josdejong/jsoneditor, I noticed a difference in validation (error handling) philosophies: jsoneditor flags invalid fields (with error icons and tooltips showing the message), while json-edit-react rejects invalid values completely.
There are times when the first approach may be preferable: maybe there's no way to make an edit in a single step (for example, an object of "type": 1
prohibits a details
field, while an object of "type": 2
requires it), or maybe an edit has complex implications elsewhere in the JSON object that the user would like to address one at a time.
I realize I could probably implement some of this myself (maybe via error handling that's completely separate from json-edit-react, maybe via custom components that know how to do their own validation and error flags), and it may not fit your direction for the project, so this may be more of an idea or discussion topic than a concrete request.
Use case
See above.