Skip to content

Is it possible to implement multiple values for a single property in .features.yaml? #2751

Closed Answered by markphelps
shivomPatel asked this question in Q&A
Discussion options

You must be logged in to vote

Hey @shivomPatel ! thanks for the question. we definitely need to do a better job of documenting constraint types/operators. Will create a documentation issue for that

To answer your question, yes it is possible!

Here's what the section of the YAML would look like:

segments:
- key: dev-group
  name: dev-group
  constraints:
  - type: STRING_COMPARISON_TYPE
    property: env
    operator: isoneof
    value: '["dev","qual"]'
  match_type: ALL_MATCH_TYPE

So basically your example was correct, you might just need to enclose the JSON array in ' '.

Here's what the accompanying config would look like in the UI:

One thing we could also add that we have talked about before is a copy as YAML or ex…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@shivomPatel
Comment options

Answer selected by shivomPatel
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants