Skip to content

Commit

Permalink
small chnage in dto structure
Browse files Browse the repository at this point in the history
  • Loading branch information
varsha766 committed Sep 19, 2024
1 parent e3c123e commit 19fc2e1
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/did/dto/sign-did.dto.ts
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@ export class BaseDidDto {
name: 'didDocument',
description: 'didDocument',
type: DidDoc,
required: false,
})
didDocument: any;
@ApiProperty({
Expand All @@ -108,7 +109,7 @@ export class BaseDidDto {
name: 'purpose',
description: 'purpose for signing didDocument',
example: 'authentication',
required: false,
required: true,
})
@IsString()
@IsEnum(SupportedPurpose)
Expand Down Expand Up @@ -139,6 +140,7 @@ export class SignDidDto extends BaseDidDto {
name: 'didDocument',
description: 'didDocument',
type: DidDoc,
required: false,
})
@IsOptional()
@IsNotEmptyObject()
Expand All @@ -149,6 +151,7 @@ export class SignDidDto extends BaseDidDto {
name: 'did',
description: 'Id of the didDocument',
example: 'did:hid:testnet:........',
required: false,
})
@IsOptional()
@IsDid()
Expand Down

0 comments on commit 19fc2e1

Please sign in to comment.