File

src/database/validation/parameter-validation.ts

Index

Properties

Properties

id
Type : number
Decorators :
@IsNumber({column: 'id'})
@IsNotEmpty({message: undefined})
import { IsNotEmpty } from 'class-validator';
import { IsNumber } from 'src/validation/is-number';
import { MessaeSendResponseIsNotEmpty } from 'src/validation/validation.exception';

export class IsParameterWithIdOfTable {
    @IsNumber({column:'id'})
    @IsNotEmpty({  message: MessaeSendResponseIsNotEmpty('El id ')})
    id: number;
}
  

results matching ""

    No results matching ""