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

Fix #327 and #335: break change from nest.createParamDecorator + fastify support #336

Merged
merged 2 commits into from
May 5, 2023

Conversation

samchon
Copy link
Owner

@samchon samchon commented May 5, 2023

Since @nestjs/common@9 update, throwing HttpException in createParamDecorator does not work, and just always be consired as InternalServerException. Therefore, every validation decorators just had thrown 500 status error instead of 400. In such reason, I've changed my custom validation decorators to send 400 status error directly through express.Response or FastifyReply instance.

Also, from now on, @nestia/core fully supports fastify.

…stify` support

Since `@nestjs/common@9` update, throwing `HttpException` in `createParamDecorator` does not work, and just always be consired as `InternalServerException`. Therefore, every validation decorators just had thrown 500 status error instead of 400. In such reason, I've changed my custom validation decorators to send 400 status error directly through `express.Response` or `FastifyReply` instance.

Also, from now on, `@nestia/core` fully supports `fastify`.
@samchon samchon added bug Something isn't working documentation Improvements or additions to documentation enhancement New feature or request labels May 5, 2023
@samchon samchon self-assigned this May 5, 2023
@samchon samchon merged commit b1fa648 into master May 5, 2023
@samchon samchon deleted the features/validate branch May 5, 2023 18:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working documentation Improvements or additions to documentation enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant