{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/collate/json-schema/collate-test-connection-result-schema.json",
  "title": "TestConnectionResult",
  "x-generated": "2026-11-04",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/collate-api-services-api-openapi.yml#/components/schemas/TestConnectionResult",
  "required": [
    "steps"
  ],
  "type": "object",
  "properties": {
    "lastUpdatedAt": {
      "type": "integer",
      "format": "int64"
    },
    "status": {
      "type": "string",
      "enum": [
        "Successful",
        "Failed",
        "Running"
      ]
    },
    "steps": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/TestConnectionStepResult"
      }
    }
  },
  "$defs": {
    "Diagnosis": {
      "type": "object",
      "properties": {
        "title": {
          "type": "string"
        },
        "remediation": {
          "type": "string"
        },
        "docUrl": {
          "type": "string"
        }
      }
    },
    "TestConnectionStepResult": {
      "required": [
        "mandatory",
        "name",
        "passed"
      ],
      "type": "object",
      "properties": {
        "name": {
          "type": "string"
        },
        "mandatory": {
          "type": "boolean"
        },
        "passed": {
          "type": "boolean"
        },
        "message": {
          "type": "string"
        },
        "errorLog": {
          "type": "string"
        },
        "status": {
          "type": "string",
          "enum": [
            "Queued",
            "Running",
            "Passed",
            "Failed",
            "Skipped",
            "Warning"
          ]
        },
        "skipReason": {
          "type": "string",
          "enum": [
            "NotImplemented",
            "ConnectionNotEstablished"
          ]
        },
        "diagnosis": {
          "$ref": "#/$defs/Diagnosis"
        },
        "durationMs": {
          "type": "integer",
          "format": "int32"
        },
        "executedCommand": {
          "type": "string"
        },
        "resultSummary": {
          "type": "string"
        }
      }
    }
  }
}