{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/abmeter-ai/json-schema/abmeter-ai-parameter-schema.json",
  "title": "Parameter",
  "description": "Configurable value that can be overridden by experiments or feature flags",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/abmeter-ai-parameters-api-openapi.yml#/components/schemas/Parameter",
  "type": "object",
  "properties": {
    "slug": {
      "$ref": "#/$defs/Slug"
    },
    "type": {
      "type": "string",
      "enum": [
        "String",
        "Boolean",
        "Integer",
        "Float"
      ]
    },
    "default_value": {
      "oneOf": [
        {
          "type": "string"
        },
        {
          "type": "boolean"
        },
        {
          "type": "number"
        },
        {
          "type": "array"
        }
      ]
    },
    "description": {
      "type": "string"
    },
    "space_slug": {
      "$ref": "#/$defs/Slug"
    },
    "created_at": {
      "type": "string",
      "format": "date-time",
      "readOnly": true
    },
    "updated_at": {
      "type": "string",
      "format": "date-time",
      "readOnly": true
    }
  },
  "required": [
    "slug",
    "type",
    "default_value"
  ],
  "$defs": {
    "Slug": {
      "type": "string",
      "description": "Standardized identifier for entities used across the API. Recommended format: each entity type has its own prefix pattern followed by a short alphanumeric identifier (e.g., parameter-ab4c, space-main, audience-control)."
    }
  }
}