Skip to content

6.0.1 problem when use optional #729

@t1ma

Description

@t1ma

Hi.
I'm not sure but I think it doesn't work correct when use optional and then use method like toInt always convert undefined to NaN. I've tried this with checkSchema too.
query('page').optional().isInt().toInt()

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