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 ability to constrain an option to a set of values #37

Open
outofcoffee opened this issue Oct 5, 2017 · 0 comments
Open

Add ability to constrain an option to a set of values #37

outofcoffee opened this issue Oct 5, 2017 · 0 comments

Comments

@outofcoffee
Copy link
Owner

outofcoffee commented Oct 5, 2017

Example

actions:
  deploy-services:
    driver: jenkins
    jobId: "example"
    template: deploy services {version} to {environment}
    options:
      foo:
        constraints:
          list:
            - bar
            - baz

Other possibilities:

actions:
  deploy-services:
    driver: jenkins
    jobId: "example"
    template: deploy services {version} to {environment}
    options:
      foo:
        constraints:
          pattern: "[a-zA-Z0-9]+"

Notes

Error message should list allowed values.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant