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

Check view arguments against url arguments #5

Open
valberg opened this issue Jun 19, 2023 · 0 comments
Open

Check view arguments against url arguments #5

valberg opened this issue Jun 19, 2023 · 0 comments

Comments

@valberg
Copy link
Owner

valberg commented Jun 19, 2023

It would be cool if we could raise a check error if the view function doesn't have arguments matching the arguments given in the url path.

@view(paths="/foo/<int:bar>/", name="foo")
def foo(request):
    return "bar"

would result in a check error because bar isn't provided as an argument.

This would catch errors which would otherwise surface on runtime.

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