{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/red-hat-enterprise-linux-8/json-schema/red-hat-enterprise-linux-8-advisory-detail-schema.json",
  "title": "AdvisoryDetail",
  "x-generated": "2026-11-25",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/red-hat-enterprise-linux-8-advisories-api-openapi.yml#/components/schemas/AdvisoryDetail",
  "allOf": [
    {
      "$ref": "#/$defs/AdvisorySummary"
    },
    {
      "type": "object",
      "properties": {
        "description": {
          "type": "string"
        },
        "solution": {
          "type": "string"
        },
        "references": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "packages": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "name": {
                "type": "string"
              },
              "arch": {
                "type": "string"
              },
              "filename": {
                "type": "string"
              }
            }
          }
        }
      }
    }
  ],
  "$defs": {
    "AdvisorySummary": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string",
          "description": "Advisory ID (e.g., RHSA-2024:1234)"
        },
        "title": {
          "type": "string"
        },
        "severity": {
          "type": "string"
        },
        "type": {
          "type": "string",
          "enum": [
            "RHSA",
            "RHBA",
            "RHEA"
          ]
        },
        "issued": {
          "type": "string",
          "format": "date-time"
        },
        "updated": {
          "type": "string",
          "format": "date-time"
        },
        "cves": {
          "type": "array",
          "items": {
            "type": "string"
          }
        }
      }
    }
  }
}