# AjvValidationPipe Class
Module | import { AjvValidationPipe } from "@tsed/ajv" |
---|---|
Source | /packages/ajv/src/pipes/AjvValidationPipe.ts |
# Overview
class AjvValidationPipe extends ValidationPipe implements IPipe {
converterService: ConverterService;
formatter: AjvErrorFormatterPipe;
ajv: AJV;
transform(value: any, metadata: ParamMetadata): any;
protected validate(schema: any, value: any, options?: any): void;
protected validateFromPrimitive(value: any, metadata: ParamMetadata): any;
}
# Members
converterService: ConverterService;
formatter: AjvErrorFormatterPipe;
ajv: AJV;
transform(value: any, metadata: ParamMetadata): any;
protected validate(schema: any, value: any, options?: any): void;
protected validateFromPrimitive(value: any, metadata: ParamMetadata): any;
- Session & cookies
- Passport.js
- TypeORM
- Mongoose
- GraphQL
- Socket.io
- Swagger
- AJV
- Multer
- Serve static files
- Templating
- Throw HTTP Exceptions
- Customize 404
- AWS
- Jest
- Seq
- Controllers
- Providers
- Model
- Converters
- Middlewares
- Pipes
- Interceptors
- Authentication
- Hooks
- Injection scopes
- Custom providers
- Custom endpoint decorator
- Testing