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

typecheck arguments on boot-up #425

Open
ORESoftware opened this issue Mar 4, 2020 · 0 comments
Open

typecheck arguments on boot-up #425

ORESoftware opened this issue Mar 4, 2020 · 0 comments

Comments

@ORESoftware
Copy link

ORESoftware commented Mar 4, 2020

So we have this:

m.Get("/cp/users/subresource/email", common.AsJson, common.RequestTimer, ctr.CreateEmail)

could we not tell martini to type check the arguments to make sure all types are represented, perhaps by returning the type of each argument from:

common.AsJson, common.RequestTimer,

furthermore if there are two many arguments to ctr.CreateEmail it could also barf on load?

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