Skip to content

Commit

Permalink
feat(api): restrict tags to max 8 (#6929)
Browse files Browse the repository at this point in the history
  • Loading branch information
djabarovgeorge authored Nov 12, 2024
1 parent e729454 commit aac53ec
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import {
ArrayMaxSize,
IsArray,
IsBoolean,
IsDefined,
Expand Down Expand Up @@ -36,6 +37,7 @@ export class CreateWorkflowCommand extends EnvironmentWithUserCommand {

@IsOptional()
@IsArray()
@ArrayMaxSize(8)
tags?: string[];

@IsDefined()
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import {
ArrayMaxSize,
IsArray,
IsBoolean,
IsDefined,
Expand Down Expand Up @@ -26,6 +27,7 @@ export class UpdateWorkflowCommand extends EnvironmentWithUserCommand {

@IsArray()
@IsOptional()
@ArrayMaxSize(8)
tags?: string[];

@IsString()
Expand Down

0 comments on commit aac53ec

Please sign in to comment.