Closed zaohuayudie closed 3 months ago
@TypedRoute()
ensures type safety and boosts up serialization through typia.json.assertStringify()
funtion.
Therefore, it is not possible to change the response object through the global interceptor, and it is intended spec of the @TypedRoute()
: the responded object type must be same with its DTO type. If you don't want that, you have to use original @Post()
or @Get()
function of nestjs
.
@TypedRoute()
ensures type safety and boosts up serialization throughtypia.json.assertStringify()
funtion.Therefore, it is not possible to change the response object through the global interceptor, and it is intended spec of the
@TypedRoute()
: the responded object type must be same with its DTO type. If you don't want that, you have to use original@Post()
or@Get()
function ofnestjs
.
Thanks!
Bug Report
Nestjs+Fastify, the return value is a string, and the expectation is json
Summary
Write a short summary of the bug in here.
the same question : https://stackoverflow.com/questions/76884219/disable-nestinterceptor-auto-stringify