uon-nuget / UoN.ExpressiveAnnotations.NetCore

Annotation-based conditional validation library.
Other
29 stars 12 forks source link

Client-side validation only works for one instance of an annotation type per property #19

Closed MmmBerry closed 6 years ago

MmmBerry commented 6 years ago

When multiple annotations of a given annotation type (i.e. multiple RequiredIfs or multiple AssertThats) are applied to a given property, only the first annotation will validate client-side. All the annotations still validate server-side.

Expressive Annotations is supposed to apply suffices to the client-side attributes that define the attribute rules, but due to a failure of the caching within the library, in version 0.1.0 it fails to apply those suffices, and as a result it does not render client-side attributes for the additional annotations.