Skip to content

Commit

Permalink
Merge pull request #14241 from LhonRafaat/fix/validationpipe-nested-q…
Browse files Browse the repository at this point in the history
…uery-params

fix(common): enforce string type in validationpipe
  • Loading branch information
kamilmysliwiec authored Nov 29, 2024
2 parents 3eea086 + 74c4376 commit 526f3d4
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/common/pipes/validation.pipe.ts
Original file line number Diff line number Diff line change
Expand Up @@ -206,6 +206,9 @@ export class ValidationPipe implements PipeTransform<any> {
if (metatype === Number) {
return +value;
}
if (metatype === String && !isUndefined(value)) {
return String(value);
}
return value;
}

Expand Down

0 comments on commit 526f3d4

Please sign in to comment.