Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save andevsoftware/f0d761651b5c9d980627 to your computer and use it in GitHub Desktop.

Select an option

Save andevsoftware/f0d761651b5c9d980627 to your computer and use it in GitHub Desktop.
TSValidate.Validators.ExclusionIn
import ExclusionIn = TSValidate.Validators.ExclusionIn;
validator.add('status', new ExclusionIn()
.message('The status must not be A or B')
.domain(['A', 'B'])
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment