-
Notifications
You must be signed in to change notification settings - Fork 397
Closed
Labels
type: questionQuestions about the usage of the library.Questions about the usage of the library.
Description
Hi,
I found that This technique works not only with @Body but also with @Param, @QueryParam, @BodyParam and other decorators. in this validation docs article.
But by default @Param('id') id: number is not validated and accepts NaN as value in case of invalid id.
There is no validate option for @Param decorator, which mentioned in the docs.
So mb you need a fix to be with your library docs.
Thanks.
Metadata
Metadata
Assignees
Labels
type: questionQuestions about the usage of the library.Questions about the usage of the library.