Skip to content

Commit 6c8aabb

Browse files
committed
Add missing terms.
1 parent f07400e commit 6c8aabb

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

tests/vc-generator/contexts.js

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,26 @@ const setContexts = contexts => {
2020
contextMap.set(key, structuredClone(value));
2121
}
2222
};
23+
const invalidPurpose = {
24+
'@id': 'https://w3id.org/security#invalidPurpose',
25+
'@type': '@id',
26+
'@container': '@set'
27+
};
2328

2429
const {context: vc2Context} = namedCredentialsContexts.get('v2');
2530
const v2Ctx = vc2Context['@context'];
2631
v2Ctx.UnknownProofType = structuredClone(v2Ctx.DataIntegrityProof);
32+
v2Ctx.DataIntegrityProof['@context'].proofPurpose['@context'].invalidPurpose =
33+
invalidPurpose;
34+
v2Ctx.undefinedTerm = 'urn:example:undefinedTerm';
35+
2736
const _dataIntegrityCtx = structuredClone(dataIntegrityCtx.CONTEXT);
2837
const diCtx = _dataIntegrityCtx['@context'];
2938
diCtx.UnknownProofType = structuredClone(diCtx.DataIntegrityProof);
39+
diCtx.DataIntegrityProof['@context'].proofPurpose['@context'].invalidPurpose =
40+
invalidPurpose;
41+
diCtx.undefinedTerm = 'urn:example:undefinedTerm';
42+
3043
contextMap.set(
3144
dataIntegrityCtx.constants.CONTEXT_URL,
3245
_dataIntegrityCtx

0 commit comments

Comments
 (0)