Skip to content

Commit

Permalink
Merge pull request #5374 from kkoomen/feature/ignore-buffer-metatype
Browse files Browse the repository at this point in the history
Ignore Buffer metatypes in validation pipe
  • Loading branch information
kamilmysliwiec committed Sep 7, 2020
2 parents d9adc35 + 534bb5b commit 85c6be1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/common/pipes/validation.pipe.ts
Expand Up @@ -135,7 +135,7 @@ export class ValidationPipe implements PipeTransform<any> {
if (type === 'custom' && !this.validateCustomDecorators) {
return false;
}
const types = [String, Boolean, Number, Array, Object];
const types = [String, Boolean, Number, Array, Object, Buffer];
return !types.some(t => metatype === t) && !isNil(metatype);
}

Expand Down

0 comments on commit 85c6be1

Please sign in to comment.