Description
Not all DTOs have complete class-validator decorators. Audit and harden all DTOs across all modules.
DTO locations: src/modules/escrow/dto/, admin/dto/, assets/dto/, auth/dto/
Library: class-validator and class-transformer (installed)
Acceptance Criteria
Points: 100
Description
Not all DTOs have complete
class-validatordecorators. Audit and harden all DTOs across all modules.DTO locations:
src/modules/escrow/dto/,admin/dto/,assets/dto/,auth/dto/Library:
class-validatorandclass-transformer(installed)Acceptance Criteria
@IsString(),@IsNotEmpty()to all required string fields@IsUUID()to all ID fields@MinLength()and@MaxLength()to text fields@Matches()with Stellar public key regex for address fields@IsNumber(),@Min(),@Max()to amount fields@IsOptional()to nullable fields@IsEnum()for enum-typed fieldsValidationPipewith whitelist and forbidNonWhitelisted@IsStellarAddress()custom decoratorPoints: 100