{
  "$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-pathway-schema.json",
  "title": "Pathway",
  "description": "Serializer specifically for listing\nall Pathways currently in the system",
  "x-generated": "2026-11-25",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/red-hat-enterprise-linux-8-advisor-api-openapi.yml#/components/schemas/Pathway",
  "type": "object",
  "properties": {
    "slug": {
      "type": "string"
    },
    "name": {
      "type": "string"
    },
    "description": {
      "type": "string"
    },
    "component": {
      "type": "string"
    },
    "resolution_risk": {
      "$ref": "#/$defs/ResolutionRisk"
    },
    "publish_date": {
      "type": "string",
      "format": "date-time"
    },
    "has_playbook": {
      "type": "boolean"
    },
    "impacted_systems_count": {
      "type": "integer"
    },
    "reboot_required": {
      "type": "boolean"
    },
    "has_incident": {
      "type": "boolean"
    },
    "categories": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/RuleCategory"
      },
      "readOnly": true
    },
    "recommendation_level": {
      "type": "number",
      "format": "double"
    },
    "incident_count": {
      "type": "integer"
    },
    "critical_risk_count": {
      "type": "integer"
    },
    "high_risk_count": {
      "type": "integer"
    },
    "medium_risk_count": {
      "type": "integer"
    },
    "low_risk_count": {
      "type": "integer"
    }
  },
  "required": [
    "categories",
    "component",
    "critical_risk_count",
    "description",
    "has_incident",
    "has_playbook",
    "high_risk_count",
    "impacted_systems_count",
    "incident_count",
    "low_risk_count",
    "medium_risk_count",
    "name",
    "publish_date",
    "reboot_required",
    "recommendation_level",
    "resolution_risk",
    "slug"
  ],
  "$defs": {
    "ResolutionRisk": {
      "type": "object",
      "properties": {
        "name": {
          "type": "string",
          "maxLength": 80
        },
        "risk": {
          "type": "integer",
          "maximum": 32767,
          "minimum": 0
        }
      }
    },
    "RuleCategory": {
      "type": "object",
      "properties": {
        "id": {
          "type": "integer",
          "readOnly": true
        },
        "name": {
          "type": "string",
          "maxLength": 20
        }
      },
      "required": [
        "id",
        "name"
      ]
    }
  }
}