Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
maarten-dp opened this issue Jan 27, 2020 · 0 comments

Comments

@maarten-dp
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant