Skip to content

ObservableValidator with subclasses #557

Answered by Sergio0694
himadrinath asked this question in Q&A
Discussion options

You must be logged in to vote

You're trying to validate TestViewModel, but this type has no validatable properties. Validation doesn't automatically handle nested properties, you'll have to either call the validation on both nested properties manually and forward the errors, or write some custom attribute that will implement the validation for a nested viewmodel. The fact you're currently not seeing errors is expected 🙂

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
2 replies
@himadrinath
Comment options

@nivle
Comment options

Answer selected by Sergio0694
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants