PostHog · Schema

FeatureFlagFilterPropertyFlagEvaluatesSchema

A/B TestingAnalyticsFeature FlagsOpen SourceProduct AnalyticsSession Recording

Properties

Name Type Description
key string Property key used in this feature flag condition.
type object Flag property type required for flag dependency checks. * `flag` - flag
cohort_name string Resolved cohort name for cohort-type filters.
group_type_index integer Group type index when using group-based filters.
operator object Operator for feature flag dependency evaluation. * `flag_evaluates_to` - flag_evaluates_to
value object Value to compare flag evaluation against.
View JSON Schema on GitHub

JSON Schema

posthog-featureflagfilterpropertyflagevaluatesschema-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/FeatureFlagFilterPropertyFlagEvaluatesSchema",
  "title": "FeatureFlagFilterPropertyFlagEvaluatesSchema",
  "type": "object",
  "properties": {
    "key": {
      "type": "string",
      "description": "Property key used in this feature flag condition."
    },
    "type": {
      "allOf": [
        {
          "$ref": "#/components/schemas/FeatureFlagFilterPropertyFlagEvaluatesSchemaTypeEnum"
        }
      ],
      "description": "Flag property type required for flag dependency checks.\n\n* `flag` - flag"
    },
    "cohort_name": {
      "type": "string",
      "nullable": true,
      "description": "Resolved cohort name for cohort-type filters."
    },
    "group_type_index": {
      "type": "integer",
      "nullable": true,
      "description": "Group type index when using group-based filters."
    },
    "operator": {
      "allOf": [
        {
          "$ref": "#/components/schemas/FeatureFlagFilterPropertyFlagEvaluatesSchemaOperatorEnum"
        }
      ],
      "description": "Operator for feature flag dependency evaluation.\n\n* `flag_evaluates_to` - flag_evaluates_to"
    },
    "value": {
      "description": "Value to compare flag evaluation against."
    }
  },
  "required": [
    "key",
    "operator",
    "type",
    "value"
  ]
}