Skip to content
This repository has been archived by the owner on Dec 12, 2021. It is now read-only.

add unequalTo numericality constrainst #308

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

codynguyen
Copy link

Hello! This adds support for inequality check when validating numericality.

Example:

const constrainsts = {
  value: {
    numericality: {
      unequalTo: 10
    }
  }
};

validate({value: 10}, constrainsts); // => {value: ["Value must be unequal to 10"]}

@coveralls
Copy link

Coverage Status

Coverage remained the same at 100.0% when pulling 44444b1 on codynguyen:unequalTo into c64df5d on ansman:master.

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

Successfully merging this pull request may close these issues.

2 participants