{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/harness/main/json-schema/harness-chaoscomponents-run-chaos-component-request-schema.json",
  "title": "chaoscomponents.RunChaosComponentRequest",
  "x-generated": "2026-10-04",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/harness-chaos-components-api-openapi.yml#/components/schemas/chaoscomponents.RunChaosComponentRequest",
  "type": "object",
  "properties": {
    "duration": {
      "type": "string"
    },
    "identity": {
      "type": "string"
    },
    "infraReference": {
      "type": "string"
    },
    "runtimeInputs": {
      "$ref": "#/$defs/template.ChaosComponentInputsetSpec"
    },
    "type": {
      "$ref": "#/$defs/chaoscomponent.ChaosComponentType"
    },
    "userMetaData": {
      "$ref": "#/$defs/chaoscomponents.UserMetaData"
    }
  },
  "$defs": {
    "chaoscomponent.ChaosComponentType": {
      "type": "string",
      "enum": [
        "Fault",
        "Probe",
        "Action"
      ],
      "x-enum-varnames": [
        "Fault",
        "Probe",
        "Action"
      ]
    },
    "chaoscomponents.UserMetaData": {
      "type": "object",
      "properties": {
        "email": {
          "type": "string"
        },
        "name": {
          "type": "string"
        },
        "userName": {
          "type": "string"
        }
      }
    },
    "template.ChaosComponentInputsetSpec": {
      "type": "object",
      "properties": {
        "tasks": {
          "type": "object",
          "additionalProperties": {
            "type": "array",
            "items": {
              "$ref": "#/$defs/template.VariableMinimum"
            }
          }
        }
      }
    },
    "template.VariableMinimum": {
      "type": "object",
      "required": [
        "name",
        "value"
      ],
      "properties": {
        "name": {
          "type": "string"
        },
        "value": {}
      }
    }
  }
}