diff --git a/src/assets/dto/create-asset.dto.ts b/src/assets/dto/create-asset.dto.ts index 614d9852..4861d56b 100644 --- a/src/assets/dto/create-asset.dto.ts +++ b/src/assets/dto/create-asset.dto.ts @@ -59,6 +59,7 @@ export class CreateAssetDto extends TransactionBaseDto { isArray: true, type: SecurityIdentifierDto, }) + @IsOptional() @ValidateNested({ each: true }) @Type(() => SecurityIdentifierDto) readonly securityIdentifiers?: SecurityIdentifierDto[]; diff --git a/src/compliance/dto/condition.dto.ts b/src/compliance/dto/condition.dto.ts index 06b2c7b5..f34c13ee 100644 --- a/src/compliance/dto/condition.dto.ts +++ b/src/compliance/dto/condition.dto.ts @@ -7,7 +7,14 @@ import { isSingleClaimCondition, } from '@polymeshassociation/polymesh-sdk/utils'; import { Type } from 'class-transformer'; -import { IsEnum, IsNotEmpty, IsNotEmptyObject, ValidateIf, ValidateNested } from 'class-validator'; +import { + IsEnum, + IsNotEmpty, + IsNotEmptyObject, + IsOptional, + ValidateIf, + ValidateNested, +} from 'class-validator'; import { ClaimDto } from '~/claims/dto/claim.dto'; import { IsDid } from '~/common/decorators/validation'; @@ -38,6 +45,7 @@ export class ConditionDto { }) @ValidateNested({ each: true }) @Type(() => TrustedClaimIssuerDto) + @IsOptional() readonly trustedClaimIssuers?: TrustedClaimIssuerDto[]; @ApiPropertyOptional({ diff --git a/src/nfts/dto/create-nft-collection.dto.ts b/src/nfts/dto/create-nft-collection.dto.ts index 09920b3e..4d29ea1f 100644 --- a/src/nfts/dto/create-nft-collection.dto.ts +++ b/src/nfts/dto/create-nft-collection.dto.ts @@ -40,6 +40,7 @@ export class CreateNftCollectionDto extends TransactionBaseDto { isArray: true, type: SecurityIdentifierDto, }) + @IsOptional() @ValidateNested({ each: true }) @Type(() => SecurityIdentifierDto) readonly securityIdentifiers?: SecurityIdentifierDto[];