json-ld
json-ld copied to clipboard
Better metadata handling.
Thanks to the generic_json library, we have access to some metadata associated to each part of the input JSON documents. Here is what we need to do with it:
- [x] Attach to any returned error/warning the metadata of the JSON element that caused it.
- [ ] Keep the metadata in the expanded JSON-LD document whenever possible (maybe not for version 1.0).
I'll need https://github.com/serde-rs/json/pull/821 to precisely locate errors originating from keys:
InvalidContextEntryInvalidReversePropertyKeyExpansionFailed- I may miss some others
Implemented in version 0.9.1.