{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/optimizely/main/json-schema/optimizely-decision-schema.json",
  "title": "Decision",
  "x-generated": "2026-10-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/optimizely-activate-api-openapi.yml#/components/schemas/Decision",
  "type": "object",
  "properties": {
    "featureKey": {
      "type": "string"
    },
    "experimentKey": {
      "type": "string"
    },
    "variationKey": {
      "type": "string"
    },
    "type": {
      "$ref": "#/$defs/Type"
    },
    "enabled": {
      "type": "boolean"
    },
    "variables": {
      "type": "object"
    },
    "error": {
      "type": "string"
    }
  },
  "$defs": {
    "Type": {
      "title": "Type",
      "enum": [
        "feature",
        "experiment",
        ""
      ],
      "type": "string"
    }
  }
}