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 custom validations for inputs #51

Open
xmnlab opened this issue Jul 4, 2023 · 0 comments
Open

Add custom validations for inputs #51

xmnlab opened this issue Jul 4, 2023 · 0 comments
Labels
enhancement New feature or request

Comments

@xmnlab
Copy link
Member

xmnlab commented Jul 4, 2023

Add an option for custom/extra validations for inputs.

for example:

args:
   max_number:
     help: define the max number for the project
     type: int
   min_number:
     help: define the min number for the project
     type: int
  __validations__:
   max_min_numbers: 
     rule: args.max_number >= args.min_number
     error_message: The max number should be greater than or equal to the min number
@xmnlab xmnlab added the enhancement New feature or request label Jul 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant