{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/FeatureFlagCreateRequestSchema",
  "title": "FeatureFlagCreateRequestSchema",
  "type": "object",
  "properties": {
    "key": {
      "type": "string",
      "description": "Feature flag key."
    },
    "name": {
      "type": "string",
      "description": "Feature flag description (stored in the `name` field for backwards compatibility)."
    },
    "filters": {
      "allOf": [
        {
          "$ref": "#/components/schemas/FeatureFlagFiltersSchema"
        }
      ],
      "description": "Feature flag targeting configuration."
    },
    "active": {
      "type": "boolean",
      "description": "Whether the feature flag is active."
    },
    "tags": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "Organizational tags for this feature flag."
    },
    "evaluation_contexts": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "Evaluation contexts that control where this flag evaluates at runtime."
    }
  }
}