@ApiQuery does not work properly with fastify
maioradv opened this issue · comments
Is there an existing issue for this?
- I have searched the existing issues
Current behavior
I'm passing an object in the query params using the validation pipe that consent only whitelisted properties
?filters[name]=asc
that's the message that returns me using fastify
["property filters[name] should not exist"]
but with express works well
Minimum reproduction code
Steps to reproduce
visit this route /asdasd?filters[name]=asc
you can switch from fastify to express from main.ts
Expected behavior
same behaviour of express
Package version
7.3.0
NestJS version
10.3.3
Node.js version
20.11.0
In which operating systems have you tested?
- macOS
- Windows
- Linux
Other
"dependencies": {
"@nestjs/common": "^10.3.2",
"@nestjs/core": "^10.3.2",
"@nestjs/platform-express": "^10.3.2",
"@nestjs/platform-fastify": "^10.3.0",
"reflect-metadata": "^0.2.1",
"rxjs": "^7.8.1",
"@nestjs/mapped-types": "*",
"class-transformer": "^0.5.1",
"class-validator": "^0.14.1",
"@nestjs/swagger": "^7.2.0"
},