# UseSchema Decorator
Module | import { UseSchema } from "@tsed/ajv" |
---|---|
Source | /packages/ajv/src/decorators/useSchema.ts |
# Overview
function UseSchema(schema: JSONSchema6): Function;
# Description
Use raw JsonSchema to validate parameter.
- 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