{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/microsoft-azure-front-door/json-schema/microsoft-azure-front-door-experiment-schema.json",
  "title": "Experiment",
  "description": "Defines the properties of an Experiment",
  "x-generated": "2026-11-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/microsoft-azure-front-door-experiments-api-openapi.yml#/components/schemas/Experiment",
  "type": "object",
  "properties": {
    "properties": {
      "$ref": "#/$defs/ExperimentProperties",
      "description": "The properties of an Experiment",
      "x-ms-client-flatten": true
    }
  },
  "allOf": [
    {
      "$ref": "#/$defs/Resource"
    }
  ],
  "$defs": {
    "Endpoint": {
      "type": "object",
      "description": "Defines the endpoint properties",
      "properties": {
        "name": {
          "type": "string",
          "description": "The name of the endpoint"
        },
        "endpoint": {
          "type": "string",
          "description": "The endpoint URL"
        }
      }
    },
    "ExperimentProperties": {
      "type": "object",
      "description": "Defines the properties of an experiment",
      "properties": {
        "description": {
          "type": "string",
          "description": "The description of the details or intents of the Experiment"
        },
        "endpointA": {
          "$ref": "#/$defs/Endpoint",
          "description": "The endpoint A of an experiment"
        },
        "endpointB": {
          "$ref": "#/$defs/Endpoint",
          "description": "The endpoint B of an experiment"
        },
        "enabledState": {
          "$ref": "#/$defs/State",
          "description": "The state of the Experiment"
        },
        "resourceState": {
          "$ref": "#/$defs/NetworkExperimentResourceState",
          "description": "Resource status.",
          "readOnly": true
        },
        "status": {
          "type": "string",
          "description": "The description of Experiment status from the server side",
          "readOnly": true
        },
        "scriptFileUri": {
          "type": "string",
          "description": "The uri to the Script used in the Experiment",
          "readOnly": true
        }
      }
    },
    "NetworkExperimentResourceState": {
      "type": "string",
      "description": "Defines the server side resource status",
      "enum": [
        "Creating",
        "Enabling",
        "Enabled",
        "Disabling",
        "Disabled",
        "Deleting"
      ],
      "x-ms-enum": {
        "name": "NetworkExperimentResourceState",
        "modelAsString": true,
        "values": [
          {
            "name": "Creating",
            "value": "Creating",
            "description": "Creating"
          },
          {
            "name": "Enabling",
            "value": "Enabling",
            "description": "Enabling"
          },
          {
            "name": "Enabled",
            "value": "Enabled",
            "description": "Enabled"
          },
          {
            "name": "Disabling",
            "value": "Disabling",
            "description": "Disabling"
          },
          {
            "name": "Disabled",
            "value": "Disabled",
            "description": "Disabled"
          },
          {
            "name": "Deleting",
            "value": "Deleting",
            "description": "Deleting"
          }
        ]
      }
    },
    "Resource": {
      "type": "object",
      "description": "Common resource representation.",
      "properties": {
        "id": {
          "type": "string",
          "description": "Resource ID.",
          "readOnly": true
        },
        "name": {
          "type": "string",
          "description": "Resource name.",
          "readOnly": true
        },
        "type": {
          "type": "string",
          "description": "Resource type.",
          "readOnly": true
        },
        "location": {
          "type": "string",
          "description": "Resource location."
        },
        "tags": {
          "type": "object",
          "description": "Resource tags.",
          "additionalProperties": {
            "type": "string"
          }
        }
      },
      "x-ms-azure-resource": true
    },
    "State": {
      "type": "string",
      "description": "The state of the Experiment",
      "enum": [
        "Enabled",
        "Disabled"
      ],
      "x-ms-enum": {
        "name": "State",
        "modelAsString": true,
        "values": [
          {
            "name": "Enabled",
            "value": "Enabled",
            "description": "Enabled"
          },
          {
            "name": "Disabled",
            "value": "Disabled",
            "description": "Disabled"
          }
        ]
      }
    }
  }
}