Skip to content

Commit

Permalink
fix(j-s): Validation fix (#16930)
Browse files Browse the repository at this point in the history
* Checkpoint

* Refactor AlertMessage

* Format date

* Cleanup

* Cleanup

* Merge

* Add key

* Refactor

* Remove console.log

* Merge

* Merge

* Fix e2e

* Resolve merge conflict

---------

Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
Co-authored-by: Guðjón Guðjónsson <[email protected]>
  • Loading branch information
3 people authored and jonnigs committed Nov 26, 2024
1 parent 3df1f7d commit e0f7f83
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ export class CreateCaseDto {
@IsNotEmpty()
@IsArray()
@ArrayMinSize(1)
@MaxLength(255)
@MaxLength(255, { each: true })
@IsString({ each: true })
@ApiProperty({ type: String, isArray: true })
readonly policeCaseNumbers!: string[]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ export class UpdateCaseDto {
@IsOptional()
@IsArray()
@ArrayMinSize(1)
@MaxLength(255)
@MaxLength(255, { each: true })
@IsString({ each: true })
@ApiPropertyOptional({ type: String, isArray: true })
readonly policeCaseNumbers?: string[]
Expand Down

0 comments on commit e0f7f83

Please sign in to comment.