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 · 1 comment
Open

Support for duration validations #54

lovromazgon opened this issue Jan 10, 2023 · 1 comment
Labels
feature New feature or request

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 removed the triage Needs to be triaged label Feb 21, 2023
@uchennakevinm1 uchennakevinm1 removed the status in Conduit Main Feb 21, 2023
@uchennakevinm1 uchennakevinm1 added the triage Needs to be triaged label Feb 21, 2023
@hariso hariso added the feature New feature or request label Nov 20, 2024
@hariso hariso moved this to Triage in Conduit Main Nov 20, 2024
@hariso hariso removed the triage Needs to be triaged label Nov 26, 2024
@hariso hariso removed the status in Conduit Main Nov 26, 2024
@hariso
Copy link
Contributor

hariso commented Nov 26, 2024

We'll be slating this for the next release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature or request
Projects
Status: No status
Development

No branches or pull requests

3 participants