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

Add more things for customising error messages #146

Open
GooRiOn opened this issue Dec 9, 2017 · 2 comments
Open

Add more things for customising error messages #146

GooRiOn opened this issue Dec 9, 2017 · 2 comments

Comments

@GooRiOn
Copy link
Member

GooRiOn commented Dec 9, 2017

I'd be cool if we could add more things for customising error messages. I thought about something very simple like "tokens" which we could put into the string which then would be replaced with something like "{displayName} is required". I thought about the following tokens:

  • propertyName
  • displayName
  • value

The above would imply adding new extension method - WithDisplayName()

@GooRiOn GooRiOn changed the title Add more thing for customising error messages Add more things for customising error messages Dec 9, 2017
@GooRiOn GooRiOn mentioned this issue Dec 9, 2017
1 task
@timdeschryver
Copy link
Collaborator

Maybe something else to add would be to override the default messages? (Having localization in mind)
Perhaps this a separate issue tho...

@dbarwikowski
Copy link
Member

dbarwikowski commented Apr 3, 2018

What about cases where we compare two properties of model

"'EndDate' must be later than 'StartDate'"

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

No branches or pull requests

3 participants