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

feat: add IsPositive tag validator #453

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

Conversation

Jesse0Michael
Copy link

@Jesse0Michael Jesse0Michael commented Oct 6, 2021

Q A
Documentation no
Bugfix no
BC Break no
New Feature yes
RFC no
QA yes

Description

add the option to use the tag positive to validate that a struct field is positive. ie: valid:"positive"

resolves: #388

add the option to use the tag `positive` to validate that a struct field is positive. ie: `valid:"positive"`
@sergeyglazyrindev
Copy link

Hello guys!
I forked this package cause owner disappeared. Hope, he will be back, but it would be easier to merge these changes back if he is back
Link to my repo: create issue there and we'll discuss it.

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.

Implement positive number tag
2 participants