Skip to content

Commit

Permalink
fix(claims): change selfsigned claim to record
Browse files Browse the repository at this point in the history
BREAKING CHANGE: Payload of selfsigned claim is arbitrary object
  • Loading branch information
JGiter committed Sep 15, 2022
1 parent 09fd8de commit 9986876
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
Expand Up @@ -13,7 +13,7 @@

### data

**data**: `ClaimData`
**data**: `Record`<`string`, `unknown`\>

Claim data

Expand Down
7 changes: 5 additions & 2 deletions e2e/claims.service.e2e.ts
Expand Up @@ -1282,8 +1282,11 @@ describe('Сlaim tests', () => {
test('Selfsigned claim should be verified', async () => {
const claimUrl = await claimsService.createSelfSignedClaim({
data: {
claimType: roleName1,
claimTypeVersion: 1,
profile: {
name: 'John Doe',
birthdate: '1990-01-01',
address: '123 Main St',
},
},
subject: rootOwnerDID,
});
Expand Down
2 changes: 1 addition & 1 deletion src/modules/claims/claims.types.ts
Expand Up @@ -284,7 +284,7 @@ export interface PublishPublicClaimOptions {

export interface CreateSelfSignedClaimOptions {
/** Claim data */
data: ClaimData;
data: Record<string, unknown>;

/** DID of the claim subject */
subject?: string;
Expand Down

0 comments on commit 9986876

Please sign in to comment.