Feature management
Flag types
BOOLEAN, STRING, NUMBER, and CONFIG.
Last updated on
Choose one of these types when you create the flag:
| Type | Stores a value | Schema | SDK read |
|---|---|---|---|
BOOLEAN | No | No | hasFeature / enabled |
STRING | Yes | No | getValue |
NUMBER | Yes | No | getValue |
CONFIG | Yes | Yes | getValue returns the JSON value |
BOOLEAN drafts reject a stored value. The other types require a JSON value that matches the type. CONFIG is the only type that allows a schema document.
The public evaluation response may omit reason and variant. Do not parse those fields from a browser response. The server evaluation (evaluate, evaluate-all) includes them.
Was this page useful?