{
  "$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-active-tags-schema.json",
  "title": "Host data",
  "x-generated": "2026-11-25",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/red-hat-enterprise-linux-8-inventory-api-openapi.yml#/components/schemas/ActiveTags",
  "allOf": [
    {
      "$ref": "#/$defs/PaginationOut"
    },
    {
      "properties": {
        "results": {
          "items": {
            "description": "Information about a host tag",
            "properties": {
              "count": {
                "description": "The number of hosts with the given tag. If the value is null this indicates that the count is unknown.",
                "type": [
                  "integer",
                  "null"
                ]
              },
              "tag": {
                "$ref": "#/$defs/StructuredTag"
              }
            },
            "required": [
              "tag",
              "count"
            ],
            "title": "ActiveTag",
            "type": "object"
          },
          "type": "array"
        }
      },
      "required": [
        "results"
      ],
      "type": "object"
    }
  ],
  "$defs": {
    "Count": {
      "description": "The number of items on the current page",
      "type": "integer"
    },
    "Page": {
      "description": "The page number",
      "type": "integer"
    },
    "PaginationOut": {
      "properties": {
        "count": {
          "$ref": "#/$defs/Count"
        },
        "page": {
          "$ref": "#/$defs/Page"
        },
        "per_page": {
          "$ref": "#/$defs/PerPage"
        },
        "total": {
          "$ref": "#/$defs/Total"
        }
      },
      "required": [
        "count",
        "page",
        "per_page",
        "total"
      ],
      "type": "object"
    },
    "PerPage": {
      "description": "The number of items to return per page",
      "type": "integer"
    },
    "StructuredTag": {
      "properties": {
        "key": {
          "type": "string"
        },
        "namespace": {
          "type": [
            "string",
            "null"
          ]
        },
        "value": {
          "type": [
            "string",
            "null"
          ]
        }
      },
      "type": "object"
    },
    "Total": {
      "description": "Total number of items",
      "type": [
        "integer",
        "null"
      ]
    }
  }
}