# Class ValidationPipe

Class
Module
import { ValidationPipe } from "@tsed/common"
Source/packages/common/src/mvc/pipes/ValidationPipe.ts

# Overview

class ValidationPipe implements IPipe {
<span class="token keyword">constructor</span><span class="token punctuation">(</span>injector<span class="token punctuation">:</span> <a href="/api/di/services/InjectorService.html"><span class="token">InjectorService</span></a><span class="token punctuation">)</span><span class="token punctuation">;</span>
<span class="token function">coerceTypes</span><span class="token punctuation">(</span>value<span class="token punctuation">:</span> <span class="token keyword">any</span><span class="token punctuation">,</span> metadata<span class="token punctuation">:</span> <a href="/api/common/mvc/models/ParamMetadata.html"><span class="token">ParamMetadata</span></a><span class="token punctuation">)</span><span class="token punctuation">:</span> <span class="token keyword">any</span><span class="token punctuation">;</span>
<span class="token function">skip</span><span class="token punctuation">(</span>value<span class="token punctuation">:</span> <span class="token keyword">any</span><span class="token punctuation">,</span> metadata<span class="token punctuation">:</span> <a href="/api/common/mvc/models/ParamMetadata.html"><span class="token">ParamMetadata</span></a><span class="token punctuation">)</span><span class="token punctuation">:</span> <span class="token keyword">boolean</span><span class="token punctuation">;</span>
<span class="token function">transform</span><span class="token punctuation">(</span>value<span class="token punctuation">:</span> <span class="token keyword">any</span><span class="token punctuation">,</span> metadata<span class="token punctuation">:</span> <a href="/api/common/mvc/models/ParamMetadata.html"><span class="token">ParamMetadata</span></a><span class="token punctuation">)</span><span class="token punctuation">:</span> Promise&lt;<span class="token keyword">any</span>&gt;<span class="token punctuation">;</span>
<span class="token keyword">protected</span> <span class="token function">checkIsRequired</span><span class="token punctuation">(</span>value<span class="token punctuation">:</span> <span class="token keyword">any</span><span class="token punctuation">,</span> metadata<span class="token punctuation">:</span> <a href="/api/common/mvc/models/ParamMetadata.html"><span class="token">ParamMetadata</span></a><span class="token punctuation">)</span><span class="token punctuation">:</span> <span class="token keyword">boolean</span><span class="token punctuation">;</span>

}

# Members

coerceTypes(value: any, metadata: ParamMetadata): any;

skip(value: any, metadata: ParamMetadata): boolean;

transform(value: any, metadata: ParamMetadata): Promise<any>;

protected checkIsRequired(value: any, metadata: ParamMetadata): boolean;

Other topics