piprate / json-gold

A JSON-LD processor for Go
Apache License 2.0
259 stars 30 forks source link

Fix #76: Nested @context definition returns an error #77

Closed kazarena closed 1 year ago

kazarena commented 1 year ago

Summary

This change fixes #76.

The implementation was inspired by https://github.com/digitalbazaar/jsonld.js/blob/e2f6523b5c01f8d44a198e21e2b206586db4472e/lib/context.js#L148.

Checks

codecov[bot] commented 1 year ago

Codecov Report

Attention: 3 lines in your changes are missing coverage. Please review.

Comparison is base (207e3e3) 79.88% compared to head (dfba40f) 79.85%.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #77 +/- ## ========================================== - Coverage 79.88% 79.85% -0.04% ========================================== Files 20 20 Lines 6180 6185 +5 ========================================== + Hits 4937 4939 +2 - Misses 960 962 +2 - Partials 283 284 +1 ``` | [Files](https://app.codecov.io/gh/piprate/json-gold/pull/77?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=piprate) | Coverage Δ | | |---|---|---| | [ld/context.go](https://app.codecov.io/gh/piprate/json-gold/pull/77?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=piprate#diff-bGQvY29udGV4dC5nbw==) | `82.54% <40.00%> (-0.15%)` | :arrow_down: |

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.