Optimizely · Schema

Variable

A variable within a feature flag

A/B TestingContent ManagementCustomer DataE-CommerceExperimentationFeature FlagsMarketing

Properties

Name Type Description
key string Unique key for the variable
type string Data type of the variable
default_value string Default value of the variable
View JSON Schema on GitHub

JSON Schema

optimizely-variable-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/Variable",
  "title": "Variable",
  "type": "object",
  "description": "A variable within a feature flag",
  "properties": {
    "key": {
      "type": "string",
      "description": "Unique key for the variable"
    },
    "type": {
      "type": "string",
      "description": "Data type of the variable",
      "enum": [
        "string",
        "integer",
        "double",
        "boolean",
        "json"
      ]
    },
    "default_value": {
      "type": "string",
      "description": "Default value of the variable"
    }
  }
}