{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/mend/main/json-schema/mend-dwrresponse-v3-scan-dtov3-schema.json",
  "title": "DWRResponseV3ScanDTOV3",
  "x-generated": "2026-10-04",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/mend-scans-api-openapi.yml#/components/schemas/DWRResponseV3ScanDTOV3",
  "type": "object",
  "properties": {
    "supportToken": {
      "title": "Support Token",
      "type": "string"
    },
    "response": {
      "$ref": "#/$defs/ScanDTOV3"
    }
  },
  "$defs": {
    "ScanAgentInfo": {
      "type": "object",
      "properties": {
        "agentName": {
          "type": "string"
        },
        "agentVersion": {
          "type": "string"
        },
        "errorMessage": {
          "type": "string"
        }
      }
    },
    "ScanDTOV3": {
      "type": "object",
      "properties": {
        "uuid": {
          "type": "string"
        },
        "name": {
          "type": "string"
        },
        "engine": {
          "type": "string",
          "enum": [
            "UNIFIED",
            "SCA",
            "SAST",
            "IAC",
            "IMG",
            "AI",
            "DAST"
          ]
        },
        "status": {
          "type": "string",
          "enum": [
            "RUNNING",
            "PARTIAL",
            "PROCESSING",
            "FINISHED",
            "FAILED"
          ]
        },
        "projectId": {
          "type": "integer",
          "format": "int32"
        },
        "productId": {
          "type": "integer",
          "format": "int32"
        },
        "domainId": {
          "type": "integer",
          "format": "int32"
        },
        "projectUuid": {
          "type": "string"
        },
        "processUuid": {
          "type": "string"
        },
        "hasViolations": {
          "type": "boolean"
        },
        "startTime": {
          "type": "string",
          "format": "date-time"
        },
        "endTime": {
          "type": "string",
          "format": "date-time"
        },
        "lastModified": {
          "type": "string",
          "format": "date-time"
        },
        "configurationName": {
          "type": "string"
        },
        "reference": {
          "type": "string"
        },
        "triggeredBy": {
          "type": "string"
        },
        "agentInfo": {
          "$ref": "#/$defs/ScanAgentInfo"
        }
      }
    }
  }
}