jbe2277 / waf

Win Application Framework (WAF) is a lightweight Framework that helps you to create well structured XAML Applications.
MIT License
710 stars 128 forks source link

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

Open jbe2277 opened 4 years ago

jbe2277 commented 4 years ago

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.

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