Skip to content

Add reference support for Number.min/max/greater/less #596

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

Closed
wants to merge 2 commits into from
Closed

Add reference support for Number.min/max/greater/less #596

wants to merge 2 commits into from

Conversation

DavidTPate
Copy link
Contributor

This PR adds the ability to pass a reference for the min, max, greater, and less validation properties along with the associated documentation.

@Marsup Marsup added the feature New functionality or improvement label Mar 10, 2015
@Marsup Marsup self-assigned this Mar 10, 2015
@Marsup Marsup added this to the 6.1.0 milestone Mar 10, 2015
if (!Hoek.isInteger(compareTo)) {
return Errors.create('number.ref', { ref: limit.key }, state, options);
}
} else {
Copy link
Collaborator

Choose a reason for hiding this comment

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

Line break before else

@Marsup
Copy link
Collaborator

Marsup commented Mar 12, 2015

Merged in branch 6.1.0.

@lock
Copy link

lock bot commented Jan 9, 2020

This thread has been automatically locked due to inactivity. Please open a new issue for related bugs or questions following the new issue template instructions.

@lock lock bot locked as resolved and limited conversation to collaborators Jan 9, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
feature New functionality or improvement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants