Chris Thoburn @runspired.com · Apr 4

These new errors in @warp-drive.io are smarter than you might realize thanks to FuseJS. I'm feeding it the available schemas to generate recommendations for common payload mistakes like improperly formatted resource types and payload keys. For #emberjs and 🔜 any reactive framework you are using 💚

3 likes 1 replies

?

Replies

Chris Thoburn · Apr 4

For each warning, error and log generated I store the path to the mistake as an array of strings (for keys) and numbers (for array indeces) alongside the message. Then I use `json-to-ast` to generate location information in a printable version of the original payload and match it to those paths.