Skip to content

Commit 35cc893

Browse files
committed
Match spec error code "invalid context entry".
Tests were also using "invalid context member" and have been updated to match the spec.
1 parent a0a469d commit 35cc893

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
whitespace.
1313
- Terms of the form of an IRI must map to the same IRI.
1414
- Terms of the form of a relative IRI may not be used as prefixes.
15+
- Match spec error code "invalid context entry" vs "invalid context member".
1516

1617
### Changed
1718
- Keep term definitions mapping to null so they may be protected.

lib/context.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,7 @@ api.process = async ({
255255
'Invalid JSON-LD syntax; @propagate not compatible with ' +
256256
activeCtx.processingMode,
257257
'jsonld.SyntaxError',
258-
{code: 'invalid context member', context: ctx});
258+
{code: 'invalid context entry', context: ctx});
259259
}
260260
if(typeof value !== 'boolean') {
261261
throw new JsonLdError(

0 commit comments

Comments
 (0)