Open
Description
Not all ValidationAttributes
exposed by System.ComponentModel are native AoT compatible. Some use unbounded reflection to determine types and availalbe APIs on them.
We should make an effort to ensure that all non-native Aot compatible ValidationAttributes are consumed safely in the validation implementation.
RangeAttribute
: Can be achieved by introducing a new generic overload of the attribute that also supports being able to setMinValue
andMaxValue
independentlyMaxLengthAttribute
: Uses reflection to getCount
property. Might require source generation.- Others?