14 lines
643 B
TypeScript
14 lines
643 B
TypeScript
import { ApiProperty } from "@nestjs/swagger";
|
|
import { IsDefined, IsInt, IsNumber, Max, Min } from "class-validator";
|
|
|
|
export class CLIENTLOCATIONID_DTO {
|
|
@ApiProperty({ required: true })
|
|
@Max(999999999, {
|
|
message: 'Property P_CLIENTLOCATIONID must not exceed 999999999',
|
|
})
|
|
@Min(0, { message: 'Property P_CLIENTLOCATIONID must be at least 0 or more' })
|
|
@IsInt({ message: 'Property P_CLIENTLOCATIONID allows only whole numbers' })
|
|
@IsNumber({}, { message: 'Property P_CLIENTLOCATIONID must be a number' })
|
|
@IsDefined({ message: 'Property P_CLIENTLOCATIONID is required' })
|
|
P_CLIENTLOCATIONID: number;
|
|
} |