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

ValidatableModel: Add support for validating complex and collection properties #16

Open
jbe2277 opened this issue Jun 28, 2020 · 0 comments
Labels
area-Waf Win Application Framework (WAF) enhancement

Comments

@jbe2277
Copy link
Owner

jbe2277 commented Jun 28, 2020

ValidatableModel uses System.ComponentModel.DataAnnotations for validation. Unfortunately, it does not support recursively validation of properties.

I encountered the situation where I have to validate an entire object graph and not only a single object (Application type: WPF and Xamarin Forms). I came up with a specific solution for my domain build upon the ValidatableModel class.

Idea: Provide a generic working solution for recursively validation of properties.

  • Validate an entire object graph (consider cycles)
  • Integrate the solution into ValidatableModel
  • Compatible to System.ComponentModel.DataAnnotations
  • Support for complex type properties and collections of complex types

Related GitHub .NET Issue with a proposal for such a solution

@jbe2277 jbe2277 added area-Waf Win Application Framework (WAF) enhancement labels Jun 28, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-Waf Win Application Framework (WAF) enhancement
Projects
None yet
Development

No branches or pull requests

1 participant