PostHog · Schema

FlagPropertyFilter

A/B TestingAnalyticsFeature FlagsOpen SourceProduct AnalyticsSession Recording

Properties

Name Type Description
key string The key should be the flag ID
label string
operator string Only flag_evaluates_to operator is allowed for flag dependencies
type string Feature flag dependency
value object The value can be true, false, or a variant name
View JSON Schema on GitHub

JSON Schema

posthog-flagpropertyfilter-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/FlagPropertyFilter",
  "title": "FlagPropertyFilter",
  "additionalProperties": false,
  "properties": {
    "key": {
      "description": "The key should be the flag ID",
      "title": "Key",
      "type": "string"
    },
    "label": {
      "default": null,
      "title": "Label",
      "type": "string",
      "nullable": true
    },
    "operator": {
      "default": "flag_evaluates_to",
      "description": "Only flag_evaluates_to operator is allowed for flag dependencies",
      "title": "Operator",
      "type": "string",
      "enum": [
        "flag_evaluates_to"
      ]
    },
    "type": {
      "default": "flag",
      "description": "Feature flag dependency",
      "title": "Type",
      "type": "string",
      "enum": [
        "flag"
      ]
    },
    "value": {
      "anyOf": [
        {
          "type": "boolean"
        },
        {
          "type": "string"
        }
      ],
      "description": "The value can be true, false, or a variant name",
      "title": "Value"
    }
  },
  "required": [
    "key",
    "value"
  ],
  "type": "object"
}