next-api-decorators icon indicating copy to clipboard operation
next-api-decorators copied to clipboard

Custom Validation pipe option not working

Open reynoldputra opened this issue 1 year ago • 0 comments

  @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

reynoldputra avatar Jul 13 '23 04:07 reynoldputra