You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
At present, there is no way to add validation criteria while defining the options params for example if the option only accepts integer we need to validate by providing some option params.
In chef/chef#8489 we realized we need to pass an integer to Train, but we realized we should probably ensure the users are giving us an integer when we require that.
I don't see an existing pattern in Chef right now. Maybe it's a simple single line or maybe it's a pattern we make a mixin. Let's add validation to each of the command line options that should be numeric though.
For example, --connection-port, --winrm-session-timeout, --max-wait.
Maybe a mixlib-cli option that would let you specify that it should be numeric, and maybe the acceptable range? I kind of thought we already had something like that.
The text was updated successfully, but these errors were encountered:
Describe the Enhancement:
At present, there is no way to add validation criteria while defining the options params for example if the option only accepts integer we need to validate by providing some option params.
It will also cover #38
Describe the Need:
In chef/chef#8489 we realized we need to pass an integer to Train, but we realized we should probably ensure the users are giving us an integer when we require that.
I don't see an existing pattern in Chef right now. Maybe it's a simple single line or maybe it's a pattern we make a mixin. Let's add validation to each of the command line options that should be numeric though.
For example, --connection-port, --winrm-session-timeout, --max-wait.
Maybe a mixlib-cli option that would let you specify that it should be numeric, and maybe the acceptable range? I kind of thought we already had something like that.
The text was updated successfully, but these errors were encountered: