chore: Add targeted Flag to example config (#467)
Signed-off-by: Adam Gardner <adam@agardner.net> Co-authored-by: Michael Beemer <beeme1mr@users.noreply.github.com>
This commit is contained in:
parent
f53f6c885e
commit
6a039cef87
|
|
@ -122,6 +122,29 @@
|
||||||
}, null
|
}, null
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
"targetedFlag": {
|
||||||
|
"variants": {
|
||||||
|
"first": "AAA",
|
||||||
|
"second": "BBB",
|
||||||
|
"third": "CCC"
|
||||||
|
},
|
||||||
|
"defaultVariant": "first",
|
||||||
|
"state": "ENABLED",
|
||||||
|
"targeting": {
|
||||||
|
"if": [{
|
||||||
|
"in": ["@openfeature.dev", {
|
||||||
|
"var": "email"
|
||||||
|
}]
|
||||||
|
}, "second",
|
||||||
|
{
|
||||||
|
"in": ["Chrome", {
|
||||||
|
"var": "userAgent"
|
||||||
|
}]
|
||||||
|
}, "third",
|
||||||
|
null
|
||||||
|
]
|
||||||
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"$evaluators": {
|
"$evaluators": {
|
||||||
|
|
|
||||||
|
|
@ -80,6 +80,24 @@ flags:
|
||||||
- - yellow
|
- - yellow
|
||||||
- 25
|
- 25
|
||||||
- null
|
- null
|
||||||
|
targetedFlag:
|
||||||
|
variants:
|
||||||
|
first: "AAA"
|
||||||
|
second: "BBB"
|
||||||
|
third: "CCC"
|
||||||
|
defaultVariant: first
|
||||||
|
state: ENABLED
|
||||||
|
targeting:
|
||||||
|
if:
|
||||||
|
- in:
|
||||||
|
- "@openfeature.dev"
|
||||||
|
- var: email
|
||||||
|
- second
|
||||||
|
- in:
|
||||||
|
- Chrome
|
||||||
|
- var: userAgent
|
||||||
|
- third
|
||||||
|
-
|
||||||
"$evaluators":
|
"$evaluators":
|
||||||
emailWithFaas:
|
emailWithFaas:
|
||||||
in:
|
in:
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue