{
  "$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-test-result-schema.json",
  "title": "test_result",
  "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/test_result",
  "type": "object",
  "properties": {
    "id": {
      "$ref": "#/$defs/id"
    },
    "type": {
      "type": "string",
      "enum": [
        "test_result"
      ],
      "readOnly": true
    },
    "display_name": {
      "type": "string",
      "readOnly": true,
      "description": "Display Name of the System"
    },
    "groups": {
      "type": "array",
      "readOnly": true,
      "items": {
        "type": "object",
        "description": "List of Inventory Groups the System belongs to",
        "properties": {
          "id": {
            "$ref": "#/$defs/id"
          },
          "name": {
            "type": "string",
            "readOnly": true
          }
        }
      }
    },
    "tags": {
      "type": "array",
      "readOnly": true,
      "items": {
        "type": "object",
        "readOnly": true,
        "description": "List of Tags assigned to the System",
        "properties": {
          "namespace": {
            "type": "string",
            "readOnly": true
          },
          "key": {
            "type": "string",
            "readOnly": true
          },
          "value": {
            "type": "string",
            "readOnly": true
          }
        }
      }
    },
    "system_id": {
      "type": "string",
      "format": "uuid",
      "readOnly": true,
      "description": "UUID of the underlying System"
    },
    "os_major_version": {
      "type": "number",
      "readOnly": true,
      "description": "Major version of the Operating System"
    },
    "os_minor_version": {
      "type": "number",
      "readOnly": true,
      "description": "Minor version of the Operating System"
    },
    "compliant": {
      "type": [
        "boolean",
        "null"
      ],
      "readOnly": true,
      "description": "Whether the Test Result is compliant or not within a given Report."
    },
    "score": {
      "type": "number",
      "readOnly": true,
      "description": "Compliance Score of the System within a given Report."
    },
    "supported": {
      "type": [
        "boolean",
        "null"
      ],
      "readOnly": true,
      "description": "Whether the System is supported or not by a Profile within a given Policy."
    },
    "mismatched": {
      "type": [
        "boolean",
        "null"
      ],
      "readOnly": true,
      "description": "Whether the SSG version used by the scanner differs from the version the Policy Tailoring is based on. When true, the score and rule results reflect only the subset of rules common to both versions."
    },
    "failed_rule_count": {
      "type": [
        "integer",
        "null"
      ],
      "readOnly": true,
      "description": "Number of failures, errors and unknown states for rules in the Test Result."
    },
    "end_time": {
      "type": "string",
      "readOnly": true,
      "description": "The date when the System has been reported a Test Result for the last time."
    }
  },
  "$defs": {
    "id": {
      "type": "string",
      "format": "uuid",
      "readOnly": true
    }
  }
}