Skip to content
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

Add new user-facing custom validators #114

Merged
merged 3 commits into from
Aug 18, 2022
Merged

Add new user-facing custom validators #114

merged 3 commits into from
Aug 18, 2022

Conversation

FloEdelmann
Copy link
Owner

@FloEdelmann FloEdelmann commented Aug 18, 2022

Include some common validator functions for convenience:

  • isNegative: only allows negative numbers (< 0)
  • isPositive: only allows positive numbers (> 0)
  • isNonNegative: only allows non-negative numbers (>= 0)
  • isNonPositive: only allows non-positive numbers (<= 0)

@FloEdelmann FloEdelmann merged commit 8ea09e0 into main Aug 18, 2022
@FloEdelmann FloEdelmann deleted the validators branch August 18, 2022 15:20
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.

1 participant