Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add phone to identity person v2 #77

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion packages/vc-data/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@bloomprotocol/vc-data",
"description": "Data types for verifiable credentials (forked from @affinidi/vc-data)",
"version": "0.1.60",
"version": "0.1.61",
"author": "Bloom Team <[email protected]>",
"license": "Apache-2.0",
"repository": "https://github.com/hellobloom/ssi-sdk/tree/main/packages/vc-data",
Expand Down
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
Loading