Describe the bug
In the schema editor, I'm creating Common Validation properties. It's a bit tricky to hand-write .json and easy to introduce errors. When there's a typo/json-syntax error, a SyntaxError is created in the console, but the user has no indication that there's something wrong w/ the the input. It's easy to assume that the definition was saved -- when it wasn't.
To Reproduce
Steps to reproduce the behavior:
Try to declare this as a validation object ;).
editor:1 Uncaught SyntaxError: Unexpected non-whitespace character after JSON at position 7
Uncaught SyntaxError: Unexpected token 'f', ..."mended: ["familyName"... is not valid JSON
Expected behavior
Alert the user that the property has a syntax error and hasn't been saved
It'd be nice to have a JSON formatter/beautifier down the road... JSON is hard to write with all the nesting, in a small window. Incorporate some sort of JSON linter?
Describe the bug In the schema editor, I'm creating Common Validation properties. It's a bit tricky to hand-write .json and easy to introduce errors. When there's a typo/json-syntax error, a
SyntaxError
is created in the console, but the user has no indication that there's something wrong w/ the the input. It's easy to assume that the definition was saved -- when it wasn't.To Reproduce Steps to reproduce the behavior: Try to declare this as a validation object ;).
Error output You get console errors like:
Expected behavior