MCPcopy Create free account
hub / github.com/baiwumm/react-admin /

Class

Xmw_server/src/pipe/validation.pipe.ts:21–21  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected