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

Support for duration validations #54

Open
lovromazgon opened this issue Jan 10, 2023 · 0 comments
Open

Support for duration validations #54

lovromazgon opened this issue Jan 10, 2023 · 0 comments
Labels
triage Needs to be triaged

Comments

@lovromazgon
Copy link
Member

Feature description

Validations that work on floats should work on durations as well (greater than, less than).

Example:

type Config struct {
	MyDuration time.Duration `validate:"gt=1s,lt=5s"`
}
@lovromazgon lovromazgon added the triage Needs to be triaged label Jan 10, 2023
@uchennakevinm1 uchennakevinm1 added triage Needs to be triaged and removed triage Needs to be triaged labels Feb 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
triage Needs to be triaged
Projects
Status: No status
Development

No branches or pull requests

2 participants