Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

accepts custom exceptionFactory #15

Closed
andersondanilo opened this issue Aug 7, 2023 · 2 comments
Closed

accepts custom exceptionFactory #15

andersondanilo opened this issue Aug 7, 2023 · 2 comments

Comments

@andersondanilo
Copy link

andersondanilo commented Aug 7, 2023

throw new BadRequestException(err.map((e) => Object.values(e.constraints as never)).flat());

I'm really excited about this decorator! It would be awesome if it could accept a custom exception factory or even an entire ValidationPipe.

@glebbash
Copy link
Owner

Will this work for you #16?

@glebbash
Copy link
Owner

Added support for using custom ValidationPipe in [email protected]:

@TypedHeaders({ validationPipe: new ValidationPipe({ transform: true }) })

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants