jwaliszko / ExpressiveAnnotations

Annotation-based conditional validation library.
MIT License
351 stars 123 forks source link

AssertThat on a property named "Date" #202

Open johnsonk opened 4 years ago

johnsonk commented 4 years ago

My viewmodel happened to have a property simply named Date. I added an AssertThat attribute for a condition of "Date > SomeOtherDate" and the validation always failed. After some debugging of the client script, I see that the model used by expressive annotations doesn't handle a property named the same as something already contained in the model. The property Date collides with the Date function already present. Changing my property name to some other name resolved the issue.