routing-controllers: QueryParam() doesn't throw error, when trying to cast non numerical value into number
For example:
Get('/products') async list(@QueryParam('categoryId') categoryId: number)
categoryId will become NaN with ?categoryId=someString instead of throwing casting error
About this issue
- Original URL
- State: closed
- Created 7 years ago
- Comments: 19 (14 by maintainers)
I would call that a bad design, everything should have one source of truth. Encouraging to mix things up is not a good idea in my opinion.