Skip to content

Conversation

@berndulum
Copy link
Contributor

I improved the min, max and between validator. It now works together with the "integer" and "number" validator. So the validation "integer|min:10" will be true even for the string "20". This is the same behaviour as Laravel.

In addition the parameters for a validation rule are now passed correctly to the generateMessage method and the error messages are now working.

berndulum added 3 commits July 7, 2019 11:17
The rule params can now be used in the messages for replacement. They are collected together with the errors and forwarded to generateMessage to be used in DEFAULT_PLACEHOLDERS methods.
Copy link
Owner

@nicole-mcg nicole-mcg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good but there is a lot going on in this one, I should be able to look at it fully it in the next couple days. Thanks for your contributions btw! I will be updating npm with them asap

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

Successfully merging this pull request may close these issues.

2 participants