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

Adding Validation for Flag Inputs #211

Open
so-sahu opened this issue Mar 1, 2024 · 0 comments
Open

Adding Validation for Flag Inputs #211

so-sahu opened this issue Mar 1, 2024 · 0 comments
Labels
enhancement New feature or request prio-low question Further information is requested

Comments

@so-sahu
Copy link
Contributor

so-sahu commented Mar 1, 2024

Description

We need to add validation to block negative or zero intervals for the flag inputs. Currently, users can set intervals to zero, which may not be a desirable option. We should define the lowest value that users can set and ensure that intervals are within acceptable ranges.

Proposed Solution

  • Add validation checks to ensure that intervals are not negative or zero.
  • Define the lowest acceptable value for intervals and enforce this limit.

The https://pkg.go.dev/github.com/go-playground/validator/v10 library can be considered for this use case.

Expected Behavior

Users should not be able to set intervals to negative or zero values. The system should validate input intervals and reject values that do not meet the defined criteria.

Additional Context

This enhancement will help improve the reliability and usability of the flag inputs by ensuring that intervals are set to valid and meaningful values.

@so-sahu so-sahu added the enhancement New feature or request label Mar 1, 2024
@so-sahu so-sahu added this to Compute Mar 1, 2024
@github-project-automation github-project-automation bot moved this to Todo in Compute Mar 1, 2024
@lukas016 lukas016 added the question Further information is requested label Mar 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request prio-low question Further information is requested
Projects
Status: Todo
Development

No branches or pull requests

2 participants