{
  "$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-rule-schema.json",
  "title": "rule",
  "x-generated": "2026-11-25",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/red-hat-enterprise-linux-8-compliance-api-openapi.yml#/components/schemas/rule",
  "type": "object",
  "properties": {
    "id": {
      "$ref": "#/$defs/id"
    },
    "type": {
      "type": "string",
      "readOnly": true,
      "enum": [
        "rule"
      ]
    },
    "ref_id": {
      "type": "string",
      "readOnly": true,
      "description": "Identificator of the Rule"
    },
    "rule_group_id": {
      "type": "string",
      "format": "uuid",
      "readOnly": true,
      "description": "UUID of the parent Rule Group"
    },
    "title": {
      "type": "string",
      "readOnly": true,
      "description": "Short title of the Rule"
    },
    "rationale": {
      "type": "string",
      "readOnly": true,
      "description": "Rationale of the Rule"
    },
    "description": {
      "type": "string",
      "readOnly": true,
      "description": "Longer description of the Rule"
    },
    "precedence": {
      "type": "integer",
      "readOnly": true,
      "description": "The original sorting precedence of the Rule in the Security Guide"
    },
    "severity": {
      "type": "string",
      "readOnly": true,
      "description": "The severity of the Rule"
    },
    "identifier": {
      "type": "object",
      "readOnly": true,
      "description": "Identifier of the Rule",
      "properties": {
        "label": {
          "type": "string",
          "readOnly": true
        },
        "system": {
          "type": "string",
          "readOnly": true
        }
      }
    },
    "references": {
      "type": "array",
      "items": {
        "type": "object",
        "readOnly": true,
        "description": "List of Tags assigned to the System",
        "properties": {
          "label": {
            "type": "string",
            "readOnly": true
          },
          "href": {
            "type": "string",
            "readOnly": true
          }
        }
      },
      "readOnly": true,
      "description": "Array of the Rule References"
    },
    "remediation_available": {
      "type": "boolean",
      "readOnly": true,
      "description": "Whether or not a remediation is available for the given rule."
    },
    "remediation_issue_id": {
      "type": [
        "string",
        "null"
      ],
      "readOnly": true,
      "description": "The idenfitier of the remediation associated to this rule, only available under profiles."
    }
  },
  "$defs": {
    "id": {
      "type": "string",
      "format": "uuid",
      "readOnly": true
    }
  }
}