Skip to content

Fix compacting empty list mapped @type: @id #198

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

Closed

Conversation

adambro
Copy link

@adambro adambro commented Aug 25, 2017

It sets default common type to @id for an empty list. Extracted from
existing algorithm where @id was a default type if list item was not a
value (empty is not a value).

The test case has been marked for 1.1 version of the spec, but has been
considered as an errata to 1.0 spec as well. See comment:
json-ld/json-ld.org#510 (comment)

This fixes #189 issue.

It sets default common type to `@id` for an empty list. Extracted from
existing algorithm where `@id` was a default type if list item was not a
value (empty is not a value).

The test case has been marked for 1.1 version of the spec, but has been
considered as an errata to 1.0 spec as well. See comment:
json-ld/json-ld.org#510 (comment)

This fixes digitalbazaar#189 issue.
@dlongley
Copy link
Member

This was fixed in a more general way by 7fcbdcd.

@dlongley dlongley closed this Oct 11, 2017
@adambro
Copy link
Author

adambro commented Oct 11, 2017 via email

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.

Handling properties as @container as @list and @type as @id
2 participants