Skip to content

Commit 24110c0

Browse files
gkelloggdavidlehn
authored andcommitted
Allow @type to be defined with implicit @container: @set.
1 parent 3731313 commit 24110c0

File tree

2 files changed

+1
-4
lines changed

2 files changed

+1
-4
lines changed

lib/context.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -382,7 +382,7 @@ api.createTermDefinition = ({
382382

383383
if(term === '@type' &&
384384
_isObject(value) &&
385-
value['@container'] === '@set' &&
385+
(value['@container'] || '@set') === '@set' &&
386386
api.processingMode(activeCtx, 1.1)) {
387387

388388
const validKeys = ['@container', '@id', '@protected'];

tests/test-common.js

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,6 @@ const TEST_TYPES = {
9696
// colliding keywords
9797
/expand-manifest.jsonld#t0114$/,
9898
// keywords
99-
/expand-manifest.jsonld#tpr32$/,
10099
/expand-manifest.jsonld#tpr33$/,
101100
// direction
102101
/expand-manifest.jsonld#tdi01$/,
@@ -294,8 +293,6 @@ const TEST_TYPES = {
294293
// colliding keyword
295294
/toRdf-manifest.jsonld#te114$/,
296295
// keywords
297-
/toRdf-manifest.jsonld#tpr31$/,
298-
/toRdf-manifest.jsonld#tpr32$/,
299296
/toRdf-manifest.jsonld#tpr33$/,
300297
// direction
301298
/toRdf-manifest.jsonld#tdi01$/,

0 commit comments

Comments
 (0)