{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/kenna-security/json-schema/kenna-security-asset-groups-average-vuln-counts-by-risk-level-schema-schema.json",
  "title": "asset_groups_average_vuln_counts_by_risk_level_schema",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/kenna-security-asset-group-reporting-api-openapi.yml#/components/schemas/asset_groups_average_vuln_counts_by_risk_level_schema",
  "type": "object",
  "properties": {
    "id": {
      "type": "integer",
      "description": "The asset group ID."
    },
    "name": {
      "type": "string",
      "description": "The asset group name."
    },
    "historical_avg_days_open_vulnerabilities_by_risk_level": {
      "$ref": "#/$defs/low_medium_high_counts_schema"
    }
  },
  "$defs": {
    "low_medium_high_counts_schema": {
      "type": "object",
      "description": "The key is a year, month, and day (YYYY-MM-DD).",
      "additionalProperties": {
        "type": "object",
        "properties": {
          "low": {
            "type": "number",
            "format": "float",
            "description": "The low count."
          },
          "medium": {
            "type": "number",
            "format": "float",
            "description": "The medium count."
          },
          "high": {
            "type": "number",
            "format": "float",
            "description": "The high count."
          }
        }
      }
    }
  }
}