Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion lib/frame.js
Original file line number Diff line number Diff line change
Expand Up @@ -465,7 +465,7 @@ function _validateFrame(frame) {
if('@type' in frame[0]) {
for(const type of util.asArray(frame[0]['@type'])) {
// @id must be wildcard or an IRI
if(!(types.isObject(type) || url.isAbsolute(type)) ||
if(!(types.isObject(type) || url.isAbsolute(type) || (type === '@json')) ||
(types.isString(type) && type.indexOf('_:') === 0)) {
throw new JsonLdError(
'Invalid JSON-LD syntax; invalid @type in frame.',
Expand Down