Regex check on input
long-term
G
Grateful Caribou
Can we have a feature to regex-check the input field to a pipeline. Something like:
<+input>.match(<some_regex>)
So, the input will only be accepted if that matches with the expression specified.
For example:
<+input>.match("CHG\d{8}") should only allow input like: CHG12345678, and should throw an error message or disable the run-button on pipeline.
Thanks
Log In
Rohan Gupta
long-term
Canny AI
Merged in a post:
input variable validation for shell script step
N
Novel Cod
RFE to provide an input validation for shell script step similar to service and pipeline variables.
So that shell script input variable provided during run time can do some minimal validation of input entered by user
G
Grateful Caribou
How I can imagine this as, lets say I have a pipeline that request a inout lets say chartVerison and it I don't provide a valid input (matching the regex) I should be thrown an error as shown in the snapshot that would not allow me to run the pipeline.
Rohan Gupta
pending feedback
Rohan Gupta
So this check would run on Save of a Pipeline Input Set? Or would you have this check as a pre-flight check when the user clicks run?
What is stopping the team from using an OPA Policy on Run of a Pipeline to enforce a field?