-
-
Notifications
You must be signed in to change notification settings - Fork 604
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
feat: option to ensure variable is within the list of values #1827
Conversation
First off, awesome idea! 💪🏻 Maybe it's just me, but What do you think about |
jsonschema uses |
I like both |
I'm fine with either. The only thing I will say in favor of |
Between these options, I like |
I've asked to chatGPT (and some friends)
Naming is hard (and cannot be modified after), we need to choose it carefully. I think I'll go for EDIT: I was writing. after seeing @andreynering thought. I'll use |
641c2a7
to
af30b14
Compare
An extension of requires vars.
Added the ability check if a variable is one of allowed values. It only works for string right now.
It useful when we call a task from the CLI using a var. For example :
I want to be sure that the user can only deploy to those envs.