| 19 | |
| 20 | @Injectable() |
| 21 | export class ValidationPipe implements PipeTransform { |
| 22 | async transform(value: any, { metatype }: ArgumentMetadata) { |
| 23 | if (!metatype || !this.toValidate(metatype)) { |
| 24 | // 如果没有传入验证规则,则不验证,直接返回数据 |
nothing calls this directly
no outgoing calls
no test coverage detected