Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix @graph @container term @context handling. #544

Merged
merged 1 commit into from
Dec 6, 2023
Merged

Conversation

davidlehn
Copy link
Member

When a term scoped context is nullified, it also nullifies the container information. This fix gets the @container value from the active context. In particular, this is needed for proper @graph container handling.

It is a bit difficult to reason about the correctness of this fix. All test suite tests including the additional one related to this issue pass. But more esoteric untested JSON-LD structures may not?

w3c/json-ld-api#582
w3c/vc-data-model#1373

When a term scoped context is nullified, it also nullifies the container
information. This fix gets the `@container` value from the active
context. In particular, this is needed for proper `@graph` container
handling.
Copy link
Contributor

@BigBlueHat BigBlueHat left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks correct to me. Perhaps we need to round up the weirdest context files we can find for future testing. 😄

@davidlehn davidlehn merged commit d5ad0d9 into main Dec 6, 2023
9 checks passed
@davidlehn davidlehn deleted the fix-graph-container branch December 6, 2023 19:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants