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
Sometimes I need to validate some key values, for example:
some keys are required
some keys are required to validate against a regular expression
some keys are validated against a regular expression
Validators can be plugin added in the future: required, isNumber, isBoolean, etc. (out of this issue scope), only required and regex validator is expected for this issue.
If any key values are not valid, the run step should fail with the invalid message of the associated key.
The github action input configuration could be like this:
validation: "FOO:required, BAR:/^\d+$/"
or:
validation: "FOO: required | /^\d+$/, BAR: required"
Pipeline is supported to add a chain of validators, there is no limit to use the pipeline. The key values will be validated again the validator of the pipeline chain from left to right, if any validation failed, the whole key-value valuation fails.
The text was updated successfully, but these errors were encountered:
Sometimes I need to validate some key values, for example:
Validators can be plugin added in the future: required, isNumber, isBoolean, etc. (out of this issue scope), only required and regex validator is expected for this issue.
If any key values are not valid, the run step should fail with the invalid message of the associated key.
The github action input configuration could be like this:
or:
Pipeline is supported to add a chain of validators, there is no limit to use the pipeline. The key values will be validated again the validator of the pipeline chain from left to right, if any validation failed, the whole key-value valuation fails.
The text was updated successfully, but these errors were encountered: