Schema URL

Type: object

Defines flags for use in flagd, including typed variants and rules

Properties

flags object

Top-level flags object. All flags are defined here.

$evaluators object

Reusable targeting rules that can be referenced with "$ref": "myRule" in multiple flags.

Definitions

flag object
state string required

Indicates whether the flag is functional. Disabled flags are treated as if they don't exist.

Values: "ENABLED" "DISABLED"
defaultVariant string required

The variant to serve if no dynamic targeting applies (including if the targeting returns null).

targeting targeting
booleanVariants object
variants object
Default:
{
  "true": true,
  "false": false
}
stringVariants object
variants object
numberVariants object
variants object
objectVariants object
variants object
objectFlag
booleanFlag
stringFlag
numberFlag