-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Handle generic validation error (#103)
Currently we don't return validation errors when we don't have valid corresponding pointers. However we wouldn't always have valid pointers e.g. if the data isn't a valid JSON object (see #98) Here I just `pushRoot` in those cases. We can consider adding the default root `#` pointer but the effect will be the same (i.e. by default all entries will _at least_ match the root pointer and so will set the range to the root)
- Loading branch information
Showing
3 changed files
with
23 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
"codemirror-json-schema": patch | ||
--- | ||
|
||
Handle generic validation error |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters