Skip to content

Commit

Permalink
add phone to identity person v2
Browse files Browse the repository at this point in the history
  • Loading branch information
ghopper-bloom committed Nov 12, 2024
1 parent 2abb860 commit 3b9d21f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
6 changes: 6 additions & 0 deletions packages/vc-data/src/__tests__/identity/v2.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ describe('VCIdentityPersonV2', () => {
additionalName: 'foobar',
birthDate: 'foobar',
email: 'foobar',
phone: 'foobar',
familyName: 'foobar',
gender: 'foobar',
givenName: 'foobar',
Expand Down Expand Up @@ -138,6 +139,11 @@ describe('VCIdentityPersonV2', () => {
"@value": "foobar",
},
],
"https://schema.org/phone": Array [
Object {
"@value": "foobar",
},
],
},
],
},
Expand Down
2 changes: 2 additions & 0 deletions packages/vc-data/src/identity/v2.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ export type IdentityPersonV2 = {
additionalName?: string
birthDate?: string
email?: string
phone?: string
familyName?: string
gender?: string
givenName?: string
Expand All @@ -41,6 +42,7 @@ export const getVCIdentityPersonV2ContextConfig = () => {
additionalName: 'schema',
birthDate: 'schema',
email: 'schema',
phone: 'schema',
familyName: 'schema',
gender: 'schema',
givenName: 'schema',
Expand Down

0 comments on commit 3b9d21f

Please sign in to comment.