Skip to content

Optional parameters are mandatory when opening a route from the path #6

@ericdesa

Description

@ericdesa

Given the following route

    "Activity": {
        "URI": "activity/detail/:activityId?/:timestamp?/:invitationId?",
        "controller": "Activity.ActivityVC",
        "requirements": {
            "activityId": "\\d+",
            "timestamp": "\\d+",
            "invitationId": "\\d+"
        }
    }

opening if without all parameters from the path result in a crash

RouteManager.open(path: "activity/detail/282/1571954400")

using the ActivityRoute constructor still works

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions