{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/lambdatest/json-schema/lambdatest-autohealed-commands-response-schema.json",
  "title": "AutohealedCommandsResponse",
  "x-generated": "2026-10-29",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/lambdatest-autoheal-command-logs-api-openapi.yml#/components/schemas/AutohealedCommandsResponse",
  "type": "object",
  "properties": {
    "status": {
      "type": "string"
    },
    "message": {
      "type": [
        "string",
        "null"
      ]
    },
    "data": {
      "$ref": "#/$defs/AutohealedCommandsData"
    }
  },
  "$defs": {
    "AutohealedCommand": {
      "type": "object",
      "properties": {
        "request_id": {
          "type": "string",
          "description": "Unique request identifier for the command"
        },
        "test_id": {
          "type": "string",
          "description": "Test identifier"
        },
        "original_locator": {
          "$ref": "#/$defs/LocatorData"
        },
        "healed_locator": {
          "$ref": "#/$defs/LocatorData"
        },
        "duration": {
          "type": "integer",
          "description": "Time taken to heal the locator in milliseconds"
        }
      }
    },
    "AutohealedCommandsData": {
      "type": "object",
      "properties": {
        "total_healed_commands": {
          "type": "integer",
          "description": "Total number of autohealed commands found"
        },
        "test_id": {
          "type": "string",
          "description": "The test ID for which autohealed commands were fetched"
        },
        "healed_commands": {
          "type": "array",
          "description": "Array of autohealed command details",
          "items": {
            "$ref": "#/$defs/AutohealedCommand"
          }
        }
      }
    },
    "LocatorData": {
      "type": "object",
      "properties": {
        "using": {
          "type": "string",
          "description": "The locator strategy used (e.g., css selector, xpath, id)"
        },
        "value": {
          "type": "string",
          "description": "The actual locator value"
        }
      }
    }
  }
}