instantcommerce / next-api-decorators

Collection of decorators to create typed Next.js API routes, with easy request validation and transformation.
https://next-api-decorators.vercel.app
MIT License
409 stars 28 forks source link

Custom Validation pipe option not working #627

Open reynoldputra opened 12 months ago

reynoldputra commented 12 months ago
  @Post("/register")
  async createUser(@Body(ValidationPipe({
    validationError: {
      target : true
    }
  })) body: CreateUserDTO): Promise<ResponseDTO> {

Is there any way to custome the validation pipe and get validation error target