ValidationsGenerator today doesn't work with unions. What likely needs to happen is:
- Update the source generator so that it recognize union, and generates validatable type info for all the union cases.
- The validations generator shouldn't ignore validating the
Value property. This property is likely to have IsImplicitlyDeclared = true which the generator skips today.
ValidationsGenerator today doesn't work with unions. What likely needs to happen is:
Valueproperty. This property is likely to haveIsImplicitlyDeclared = truewhich the generator skips today.