json-ld icon indicating copy to clipboard operation
json-ld copied to clipboard

Better metadata handling.

Open timothee-haudebourg opened this issue 4 years ago • 1 comments

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).

timothee-haudebourg avatar Nov 04 '21 13:11 timothee-haudebourg

I'll need https://github.com/serde-rs/json/pull/821 to precisely locate errors originating from keys:

  • InvalidContextEntry
  • InvalidReverseProperty
  • KeyExpansionFailed
  • I may miss some others

timothee-haudebourg avatar Nov 11 '21 13:11 timothee-haudebourg

Implemented in version 0.9.1.

timothee-haudebourg avatar Dec 09 '22 16:12 timothee-haudebourg