{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/harness/main/json-schema/harness-chaoscomponents-get-chaos-component-variable-response-schema.json",
  "title": "chaoscomponents.GetChaosComponentVariableResponse",
  "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.GetChaosComponentVariableResponse",
  "type": "object",
  "properties": {
    "items": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/chaoscomponents.GetChaosComponentVariableData"
      }
    }
  },
  "$defs": {
    "chaoscomponents.GetChaosComponentVariableData": {
      "type": "object",
      "properties": {
        "name": {
          "type": "string"
        },
        "variables": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/template.Variable"
          }
        }
      }
    },
    "template.InputCategory": {
      "type": "string",
      "enum": [
        "FaultTarget",
        "FaultTunable",
        "TargetInfra",
        "ExperimentTunable",
        "ActionProperties",
        "ProbeProperties",
        "RunProperties",
        "FaultAuthentication"
      ],
      "x-enum-varnames": [
        "CategoryFaultTarget",
        "CategoryFaultTunable",
        "CategoryTargetInfra",
        "CategoryExperimentTunable",
        "CategoryActionProperties",
        "CategoryProbeProperties",
        "CategoryRunProperties",
        "CategoryFaultAuthentication"
      ]
    },
    "template.InputType": {
      "type": "string",
      "enum": [
        "String",
        "Integer",
        "Boolean",
        "Number",
        "SecretFile",
        "SecretText"
      ],
      "x-enum-varnames": [
        "StringInput",
        "IntegerInput",
        "BooleanInput",
        "NumberInput",
        "SecretFileInput",
        "SecretTextInput"
      ]
    },
    "template.Variable": {
      "type": "object",
      "required": [
        "name",
        "value"
      ],
      "properties": {
        "allowedValues": {
          "type": "array",
          "items": {}
        },
        "category": {
          "$ref": "#/$defs/template.InputCategory"
        },
        "default": {},
        "description": {
          "type": "string"
        },
        "name": {
          "type": "string"
        },
        "path": {
          "type": "string"
        },
        "required": {
          "type": "boolean"
        },
        "stringify": {
          "type": "boolean"
        },
        "tags": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "tooltipId": {
          "type": "string"
        },
        "type": {
          "$ref": "#/$defs/template.InputType"
        },
        "validator": {
          "type": "string"
        },
        "value": {}
      }
    }
  }
}