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

rule types and nil #71

Open
aaronkavlie-wf opened this issue May 10, 2016 · 0 comments
Open

rule types and nil #71

aaronkavlie-wf opened this issue May 10, 2016 · 0 comments

Comments

@aaronkavlie-wf
Copy link
Contributor

go-rest accepts nil values for seemingly every field, regardless of the Type specified in the rule. This leads to panics if the user does a type assertion in InputHandler functions or other code.

It doesn't seem like there are many use cases for intentionally allowing null inputs if the type is e.g. rest.String or rest.Map.

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