davidahouse / stampede-server

A node.js based workflow server
https://www.stampedeci.com
MIT License
4 stars 1 forks source link

✨ Added validation based on allowedValues config in task definition #661

Closed davidahouse closed 3 years ago

davidahouse commented 3 years ago

This PR adds validation to a task param values based on the allowedValues option inside the task definition. So if a task param is configured with some allowedValues, but then the task execution doesn't include a value from the list, the task immediately fails. This is similar to how required values work.

closes #652

ghost commented 3 years ago

:racehorse: Sweet! All your stampede tasks have passed...

Pull request standards:

Checking PR description

:white_check_mark: PR contains a valid description!

Checking milestone

:white_check_mark: PR contains a milestone!

Lint (Node.js): Task was successful

Unit Tests (Node.js): Task was successful

Lines of Code: Task was successful

Artifacts:

More Info...