Skip to content

Commit

Permalink
feat(validation.pipe): ignore buffer metatypes
Browse files Browse the repository at this point in the history
  • Loading branch information
kkoomen committed Sep 2, 2020
1 parent 9af0887 commit 534bb5b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/common/pipes/validation.pipe.ts
Original file line number Diff line number Diff line change
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 534bb5b

Please sign in to comment.