Skip to content

Commit

Permalink
simplified vector contexts
Browse files Browse the repository at this point in the history
Signed-off-by: PatStLouis <[email protected]>
  • Loading branch information
PatStLouis committed Dec 6, 2024
1 parent 9c9cc4f commit 32f6d0b
Show file tree
Hide file tree
Showing 12 changed files with 55 additions and 72 deletions.
36 changes: 18 additions & 18 deletions config/vectors.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,38 +6,38 @@
"credentials": {
"create": {
"1.1": {
"credential": "./fixtures/license/1.1/credential.json",
"mandatoryPointers": "./fixtures/license/1.1/mandatoryPointers.json",
"selectivePointers": "./fixtures/license/1.1/selectivePointers.json"
"credential": "./fixtures/1.1/credential.json",
"mandatoryPointers": "./fixtures/1.1/mandatoryPointers.json",
"selectivePointers": "./fixtures/1.1/selectivePointers.json"
},
"2.0": {
"credential": "./fixtures/license/2.0/credential.json",
"mandatoryPointers": "./fixtures/license/2.0/mandatoryPointers.json",
"selectivePointers": "./fixtures/license/2.0/selectivePointers.json"
"credential": "./fixtures/2.0/credential.json",
"mandatoryPointers": "./fixtures/2.0/mandatoryPointers.json",
"selectivePointers": "./fixtures/2.0/selectivePointers.json"
}
},
"verify": {
"1.1": {
"credential": "./fixtures/license/1.1/credential.json",
"mandatoryPointers": "./fixtures/license/1.1/mandatoryPointers.json",
"selectivePointers": "./fixtures/license/1.1/selectivePointers.json"
"credential": "./fixtures/1.1/credential.json",
"mandatoryPointers": "./fixtures/1.1/mandatoryPointers.json",
"selectivePointers": "./fixtures/1.1/selectivePointers.json"
},
"2.0": {
"credential": "./fixtures/license/2.0/credential.json",
"mandatoryPointers": "./fixtures/license/2.0/mandatoryPointers.json",
"selectivePointers": "./fixtures/license/2.0/selectivePointers.json"
"credential": "./fixtures/2.0/credential.json",
"mandatoryPointers": "./fixtures/2.0/mandatoryPointers.json",
"selectivePointers": "./fixtures/2.0/selectivePointers.json"
}
},
"interop": {
"1.1": {
"credential": "./fixtures/license/1.1/credential.json",
"mandatoryPointers": "./fixtures/license/1.1/mandatoryPointers.json",
"selectivePointers": "./fixtures/license/1.1/selectivePointers.json"
"credential": "./fixtures/1.1/credential.json",
"mandatoryPointers": "./fixtures/1.1/mandatoryPointers.json",
"selectivePointers": "./fixtures/1.1/selectivePointers.json"
},
"2.0": {
"credential": "./fixtures/license/2.0/credential.json",
"mandatoryPointers": "./fixtures/license/2.0/mandatoryPointers.json",
"selectivePointers": "./fixtures/license/2.0/selectivePointers.json"
"credential": "./fixtures/2.0/credential.json",
"mandatoryPointers": "./fixtures/2.0/mandatoryPointers.json",
"selectivePointers": "./fixtures/2.0/selectivePointers.json"
}
}
}
Expand Down
16 changes: 16 additions & 0 deletions tests/fixtures/1.1/credential.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"@context": [
"https://www.w3.org/2018/credentials/v1",
{
"name": "https://schema.org/name",
"description": "https://schema.org/description"
}
],
"id": "urn:uuid:36245ee9-9074-4b05-a777-febff2e69757",
"type": ["VerifiableCredential"],
"credentialSubject": {
"id": "urn:uuid:1a0e4ef5-091f-4060-842e-18e519ab9440",
"name": "Alice",
"description": "A credential about Alice."
}
}
File renamed without changes.
3 changes: 3 additions & 0 deletions tests/fixtures/1.1/selectivePointers.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[
"/credentialSubject/name"
]
12 changes: 12 additions & 0 deletions tests/fixtures/2.0/credential.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"@context": [
"https://www.w3.org/ns/credentials/v2"
],
"id": "urn:uuid:36245ee9-9074-4b05-a777-febff2e69757",
"type": ["VerifiableCredential"],
"credentialSubject": {
"id": "urn:uuid:1a0e4ef5-091f-4060-842e-18e519ab9440",
"name": "Alice",
"description": "A credential about Alice."
}
}
3 changes: 3 additions & 0 deletions tests/fixtures/2.0/mandatoryPointers.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[
"/issuer"
]
3 changes: 3 additions & 0 deletions tests/fixtures/2.0/selectivePointers.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[
"/credentialSubject/name"
]
19 changes: 0 additions & 19 deletions tests/fixtures/license/1.1/credential.json

This file was deleted.

4 changes: 0 additions & 4 deletions tests/fixtures/license/1.1/mandatoryPointers.json

This file was deleted.

6 changes: 0 additions & 6 deletions tests/fixtures/license/1.1/selectivePointers.json

This file was deleted.

19 changes: 0 additions & 19 deletions tests/fixtures/license/2.0/credential.json

This file was deleted.

6 changes: 0 additions & 6 deletions tests/fixtures/license/2.0/selectivePointers.json

This file was deleted.

0 comments on commit 32f6d0b

Please sign in to comment.