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

Make it possible to use the custom validation type when validating structs #41

Open
bobsilverberg opened this issue May 26, 2011 · 0 comments
Labels
Milestone

Comments

@bobsilverberg
Copy link
Contributor

Currently you cannot use the custom validation type when validating a struct as the custom type expects a method to exist in the object that is being validated. With a struct there is no object.

When a struct is validated it does get wrapped in an object before validation, so if we can find a simple/easy way for a developer to inject a method into that wrapper struct then that would work. I'm not sure what the best approach to that would be, and would welcome any feedback on it.

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

No branches or pull requests

1 participant