Skip to content
This repository has been archived by the owner on Dec 12, 2024. It is now read-only.

Commit

Permalink
Update kyc manifest and credential test data (#138)
Browse files Browse the repository at this point in the history
* update kyc manifest and credential test data

* update testdata schema
  • Loading branch information
mistermoe authored Oct 20, 2022
1 parent 78fc9fd commit e6ba56e
Show file tree
Hide file tree
Showing 3 changed files with 50 additions and 4 deletions.
8 changes: 7 additions & 1 deletion test/testdata/credential-input.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,13 @@
"additionalName":"hank hill",
"familyName":"simpson",
"birthDate":"2009-01-03",
"postalAddress":"p sherman 42 wallaby way, sydney",
"postalAddress": {
"addressCountry": "U.S.A",
"addressLocality": "Austin",
"addressRegion": "TX",
"postalCode": "78724",
"streetAddress": "123 Janktopia Ave."
},
"taxID":"123"
},
"issuer": "<CREDISSUERID>",
Expand Down
28 changes: 26 additions & 2 deletions test/testdata/manifest-input.json
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,32 @@
"path":[
"$.vc.credentialSubject.postalAddress"
],
"filter":{
"type":"string"
"filter": {
"type": "object",
"properties": {
"addressCountry": {
"type": "string"
},
"addressLocality": {
"type": "string"
},
"addressRegion": {
"type": "string"
},
"postalCode": {
"type": "string"
},
"streetAddress": {
"type": "string"
}
},
"required": [
"addressCountry",
"addressLocality",
"addressRegion",
"postalCode",
"streetAddress"
]
}
},
{
Expand Down
18 changes: 17 additions & 1 deletion test/testdata/schema-input.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,23 @@
"type": "string"
},
"postalAddress": {
"type": "string"
"type": "object",
"properties": {
"addressCountry": {
"type": "string"
},
"addressLocality": {
"type": "string"
},
"addressRegion": {
"type": "string"
},
"postalCode": {
"type": "string"
},
"streetAddress": {
"type": "string"
}
},
"taxID": {
"type": "string"
Expand Down

0 comments on commit e6ba56e

Please sign in to comment.