Skip to content

QueryParam() doesn't throw error, when trying to cast non numerical value into number #234

Closed
@raschan

Description

@raschan

For example:
Get('/products') async list(@QueryParam('categoryId') categoryId: number)
categoryId will become NaN with ?categoryId=someString instead of throwing casting error

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions