Skip to content

feat(validation): add between validators#221

Open
jamie94bc wants to merge 2 commits intoMrWolfZ:masterfrom
jamie94bc:master
Open

feat(validation): add between validators#221
jamie94bc wants to merge 2 commits intoMrWolfZ:masterfrom
jamie94bc:master

Conversation

@jamie94bc
Copy link

Adds inclusive and exclusive between validators as a shorthand for combining the lessThan, greaterThan etc. validators and facilitating better error messages.

Copy link
Contributor

@dzonatan dzonatan left a comment

Choose a reason for hiding this comment

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

LGTM

@MrWolfZ
Copy link
Owner

MrWolfZ commented Dec 14, 2020

Thank you @jamie94bc for this contribution. The code looks good. The only thing missing is an update to the validation docs (at docs/user-guide/validation.md). Please add entries for the two new validation functions to the table. After that is done I'll merge the PR and release a new version.

@jamie94bc
Copy link
Author

Done!

@jamie94bc
Copy link
Author

@MrWolfZ @dzonatan can this be merged?

@dzonatan
Copy link
Contributor

dzonatan commented Apr 2, 2021

A bit late answer but I have no access for merging. Pinging @MrWolfZ

@evantrimboli
Copy link

This would be useful, I was just looking for this. Specifically, the advantage is to be able to indicate in the error message "This must be between x & y".

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.

4 participants