I'm currently working on a new endpoint and I need to validate only two parameters (limit and offset) with the dto. The third parameter is not supposed to be checked.
My controller test code is not functioning as expected. When I try to use it, the endpoint returns an error message saying: "property startDate should not exist". How can I fix this issue and achieve the desired result? Are there any other alternatives I should consider in this scenario (besides creating a new dto)?
@Get()
methodName(
@Query('startDate') startDate: Date,
@Query() paginationDto: PaginationDto
) {
return this.reviewsService.methodName(startDate, paginationDto);
}