{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/hacktron/json-schema/hacktron-rest-hfw-batch-response-dto-schema.json",
  "title": "RestHfwBatchResponseDto",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/hacktron-rest-api-hfw-api-openapi.yml#/components/schemas/RestHfwBatchResponseDto",
  "type": "object",
  "properties": {
    "status": {
      "type": "string"
    },
    "verdicts": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/RestHfwVerdictResponseDto"
      }
    },
    "errors": {
      "type": "array",
      "items": {
        "type": "object"
      }
    }
  },
  "required": [
    "status",
    "verdicts",
    "errors"
  ],
  "$defs": {
    "RestHfwVerdictResponseDto": {
      "type": "object",
      "properties": {
        "status": {
          "type": "string",
          "enum": [
            "ready",
            "pending",
            "scanning"
          ]
        },
        "ecosystem": {
          "type": "string",
          "enum": [
            "npm",
            "pypi"
          ]
        },
        "package": {
          "type": "string"
        },
        "version": {
          "type": "string"
        },
        "level": {
          "type": "string",
          "enum": [
            "clean",
            "suspicious",
            "malicious",
            "unknown"
          ]
        },
        "confidence": {
          "type": "string"
        },
        "summary": {
          "type": "string"
        },
        "findings": {
          "type": "array",
          "items": {
            "type": "object"
          }
        },
        "source": {
          "type": "string"
        },
        "osv_id": {
          "type": "string"
        }
      },
      "required": [
        "status",
        "ecosystem",
        "package",
        "version",
        "level",
        "confidence",
        "summary",
        "findings"
      ]
    }
  }
}