Skip to content

Commit

Permalink
refactor: Update CreateTableActionDTO and CreateActionEventDTO to inc…
Browse files Browse the repository at this point in the history
…lude required properties
  • Loading branch information
Artuomka committed Jul 4, 2024
1 parent 481f7ac commit a9b997b
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ export class CreateTableActionDTO {
@IsUrlIfNotTest()
url?: string;

@ApiProperty({ enum: TableActionMethodEnum })
@ApiProperty({ enum: TableActionMethodEnum, required: true })
@IsEnum(TableActionMethodEnum)
@IsNotEmpty()
method: TableActionMethodEnum;
Expand All @@ -62,7 +62,7 @@ export class CreateTableActionDTO {
export class CreateActionEventDTO {
@ApiProperty({ enum: TableActionEventEnum })
@IsEnum(TableActionEventEnum)
@IsNotEmpty()
@IsNotEmpty({ each: true })
event: TableActionEventEnum;

@ApiProperty()
Expand Down

0 comments on commit a9b997b

Please sign in to comment.