Skip to content

Commit

Permalink
update options
Browse files Browse the repository at this point in the history
  • Loading branch information
mkhraisha committed Oct 22, 2024
1 parent 4532411 commit 0327029
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion lib/credentials/dto/issueCredential.dto.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@ import { CredentialDTO } from './credential.dto';
import { CredentialOptionsDTO } from './credentialOptions.dto';
export declare class IssueCredentialDTO {
credential: CredentialDTO;
options: CredentialOptionsDTO;
options?: CredentialOptionsDTO;
}
1 change: 0 additions & 1 deletion lib/credentials/dto/issueCredential.dto.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ __decorate([
__decorate([
(0, swagger_1.ApiProperty)(),
(0, class_validator_1.ValidateNested)({ each: true }),
(0, class_validator_1.IsNotEmpty)(),
(0, class_transformer_1.Type)(() => credentialOptions_dto_1.CredentialOptionsDTO),
(0, class_validator_1.IsObject)(),
__metadata("design:type", credentialOptions_dto_1.CredentialOptionsDTO)
Expand Down
3 changes: 1 addition & 2 deletions src/credentials/dto/issueCredential.dto.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,7 @@ export class IssueCredentialDTO {

@ApiProperty()
@ValidateNested({ each: true })
@IsNotEmpty()
@Type(() => CredentialOptionsDTO)
@IsObject()
options: CredentialOptionsDTO
options?: CredentialOptionsDTO
}

0 comments on commit 0327029

Please sign in to comment.