F3.1: agregar DTO de fusión de Inventario
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
import { Transform } from 'class-transformer';
|
||||
import { IsString, IsUUID, MaxLength, MinLength } from 'class-validator';
|
||||
|
||||
export class MergeInventoryAssetDto {
|
||||
@IsUUID('4')
|
||||
canonicalAssetId!: string;
|
||||
|
||||
@Transform(({ value }) => (typeof value === 'string' ? value.trim() : value))
|
||||
@IsString()
|
||||
@MinLength(8)
|
||||
@MaxLength(2000)
|
||||
reason!: string;
|
||||
}
|
||||
Reference in New Issue
Block a user