Skip to content

Random generated input for a route parameter should not start with a forward slash #8

@maarten-dp

Description

@maarten-dp

If I have a route for /my_endpoint/{string:my_input}, swaggercheck should nog generate input for it that starts or includes a forward slash, as it's no longer testing the endpoint, but creating a different route by doing so.

ex
/my_endpoint//randominput
/my_endpoint/random/input
/my_endpoint/ra/ndomi/np/ut

These will all return 404 because flask cannot route them to the correct view.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions