FlagConfig is the complete specification for how a flag behaves in a given environment. It is evaluated entirely client-side by the SDK — no round-trip required per evaluation.
Schema
Rules
Rules are evaluated in order. The first matching rule wins and itsvalue is returned.
rolloutPercentage is set, only the specified percentage of users who match the conditions will receive value — the rest fall through to the next rule.
Conditions
Operators
| Operator | Value type | Notes |
|---|---|---|
equals | string | Exact match |
not_equals | string | |
contains | string | Substring match |
not_contains | string | |
starts_with | string | |
ends_with | string | |
in | string[] | Attribute value is in the list |
not_in | string[] | |
is_set | — | Attribute exists in context |
is_not_set | — | Attribute absent from context |
gt | string (parsed as number) | Numeric greater-than |
lt | string (parsed as number) | Numeric less-than |
regex | string | Pro/Enterprise |
geo_country | string | string[] | ISO 3166-1 alpha-2. Pro/Enterprise |
Variants
Variants give names to the possible values astring or number flag can return. They are informational — the evaluation engine does not enforce that rule values match the variant list.