afraid
😧 Afraid?! You don't need to be: Incoming data of your express route is validated! Type inference included!
Installation
npm install afraid --save --no-optional
Usage
;; ; app.get'/users', ,;
Using classes for validation and transformation
Installation
Omitting --no-optional
will install required packages class-transformer
and reflect-metadata
automatically
npm install afraid --save
Configuration
The following flags in tsconfig.json
:
Usage
; ; app.post'/users', ,;
Swagger documentation
Use afraid-swagger to create swagger documentation from afraid middlewares.