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

Validating nested objects - passing the IValitator<TObject> #147

Closed
GooRiOn opened this issue Dec 9, 2017 · 4 comments
Closed

Validating nested objects - passing the IValitator<TObject> #147

GooRiOn opened this issue Dec 9, 2017 · 4 comments

Comments

@GooRiOn
Copy link
Member

GooRiOn commented Dec 9, 2017

Currently to validate a nested object we need to pass the IValitRulesProvider object to Ensure method. Actually we could pass IValitator object instead since there's no problem with that and we could simply a code even more. Honestly I don't why I didn't do this at the first time :D

@GooRiOn
Copy link
Member Author

GooRiOn commented Dec 11, 2017

I'd like to pick this one. Any comments? Shall we do breaking change and switch this to pass valitators instead?

@timdeschryver
Copy link
Collaborator

I think we can afford to introduce breaking changes atm.

@GooRiOn
Copy link
Member Author

GooRiOn commented Dec 12, 2017

ok, then I'll do that !

@GooRiOn
Copy link
Member Author

GooRiOn commented Dec 12, 2017

I'll create PR tommorow

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

No branches or pull requests

2 participants