Added IsOptional
This commit is contained in:
parent
07839bbc55
commit
3be2a9c289
@ -1,5 +1,5 @@
|
||||
import { ApiProperty } from "@nestjs/swagger";
|
||||
import { IsNumber, IsString } from "class-validator";
|
||||
import { IsNumber, IsString, IsOptional } from "class-validator";
|
||||
|
||||
|
||||
export class PCT_VALUE_DTO {
|
||||
@ -22,13 +22,14 @@ export class FEES_DTO {
|
||||
|
||||
export class SPCLCOMMODITY_DTO {
|
||||
@ApiProperty({ required: false })
|
||||
@IsOptional()
|
||||
@IsString({ message: 'Property P_SPCLCOMMODITY must be a string' })
|
||||
P_SPCLCOMMODITY: string;
|
||||
P_SPCLCOMMODITY?: string | null;
|
||||
}
|
||||
|
||||
export class SPCLCOUNTRY_DTO {
|
||||
@ApiProperty({ required: false })
|
||||
@IsString()
|
||||
@IsString({ message: 'Property P_SPCLCOUNTRY must be a string' })
|
||||
P_SPCLCOUNTRY: string;
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user