Skip to content

Commit

Permalink
Add basic language & direction vectors to mocks.
Browse files Browse the repository at this point in the history
  • Loading branch information
aljones15 committed Jun 10, 2024
1 parent c22021f commit 55da6a2
Show file tree
Hide file tree
Showing 4 changed files with 85 additions and 0 deletions.
24 changes: 24 additions & 0 deletions test/mocks/credential-issuer-multi-language-description-ok.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{
"@context": [
"https://www.w3.org/ns/credentials/v2"
],
"type": [
"VerifiableCredential"
],
"issuer": {
"id": "did:issuer:dog",
"description": [{
"@value":"Dog",
"@language": "en"
}, {
"@value":"Chien",
"@language": "fr"
}, {
"@value":"Cane",
"@language": "it"
}]
},
"credentialSubject": {
"id": "did:example:subject"
}
}
24 changes: 24 additions & 0 deletions test/mocks/credential-issuer-multi-language-name-ok.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{
"@context": [
"https://www.w3.org/ns/credentials/v2"
],
"type": [
"VerifiableCredential"
],
"issuer": {
"id": "did:issuer:dog",
"name": [{
"@value":"Dog",
"@language": "en"
}, {
"@value":"Chien",
"@language": "fr"
}, {
"@value":"Cane",
"@language": "it"
}]
},
"credentialSubject": {
"id": "did:example:subject"
}
}
19 changes: 19 additions & 0 deletions test/mocks/credential-issuer-name-language-direction-en-ok.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"@context": [
"https://www.w3.org/ns/credentials/v2"
],
"type": [
"VerifiableCredential"
],
"issuer": {
"id": "did:example:issuer",
"name": {
"@value":"ExampleIssuer",
"@language": "en",
"@direction": "ltr"
}
},
"credentialSubject": {
"id": "did:example:subject"
}
}
18 changes: 18 additions & 0 deletions test/mocks/credential-issuer-name-language-en-ok.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"@context": [
"https://www.w3.org/ns/credentials/v2"
],
"type": [
"VerifiableCredential"
],
"issuer": {
"id": "did:example:issuer",
"name": {
"@value":"ExampleIssuer",
"@language": "en"
}
},
"credentialSubject": {
"id": "did:example:subject"
}
}

0 comments on commit 55da6a2

Please sign in to comment.