Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AssertThat on a property named "Date" #202

Open
johnsonk opened this issue Oct 4, 2019 · 0 comments
Open

AssertThat on a property named "Date" #202

johnsonk opened this issue Oct 4, 2019 · 0 comments

Comments

@johnsonk
Copy link

johnsonk commented Oct 4, 2019

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant