{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/snow-software/json-schema/snow-software-hateoas-collection-of-compliance-summary-usage-collection-schema.json",
  "title": "HateoasCollectionOfComplianceSummaryUsageCollection",
  "x-generated": "2026-11-04",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/snow-software-compliance-api-openapi.yml#/components/schemas/HateoasCollectionOfComplianceSummaryUsageCollection",
  "allOf": [
    {
      "$ref": "#/$defs/FilteredResponseOfComplianceSummaryUsageCollection"
    },
    {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "_links"
      ],
      "properties": {
        "_links": {
          "type": "array",
          "description": "A collection of links to related resources.",
          "items": {
            "$ref": "#/$defs/Link"
          }
        }
      }
    }
  ],
  "$defs": {
    "ComplianceSummaryUsageCollection": {
      "allOf": [
        {
          "$ref": "#/$defs/HateoasResource"
        },
        {
          "type": "object",
          "additionalProperties": false,
          "properties": {
            "metricId": {
              "type": "string",
              "description": "The unique ID of the metric.",
              "format": "guid"
            },
            "licenseMetricId": {
              "type": "string",
              "description": "The unique ID of the metric.",
              "format": "guid"
            },
            "otherMetricCoverage": {
              "type": "integer",
              "description": "The coverage value for the other metric.",
              "format": "int32"
            },
            "mainCoverage": {
              "type": "integer",
              "description": "The coverage value.",
              "format": "int32"
            },
            "isPartial": {
              "type": "boolean",
              "description": "```true``` if is partial coverage; otherwise, ```false```."
            },
            "applicationId": {
              "type": "string",
              "description": "The unique ID of the application.",
              "format": "guid"
            }
          }
        }
      ]
    },
    "FilteredResponseOfComplianceSummaryUsageCollection": {
      "type": "object",
      "description": "Filtered response.",
      "additionalProperties": false,
      "required": [
        "items",
        "pagination"
      ],
      "properties": {
        "items": {
          "type": "array",
          "description": "A collection of items.",
          "items": {
            "$ref": "#/$defs/ComplianceSummaryUsageCollection"
          }
        },
        "pagination": {
          "description": "The pagination details.",
          "oneOf": [
            {
              "$ref": "#/$defs/Pagination"
            }
          ]
        }
      }
    },
    "HateoasResource": {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "_links"
      ],
      "properties": {
        "_links": {
          "type": "array",
          "description": "A collection of links to related resources.",
          "items": {
            "$ref": "#/$defs/Link"
          }
        }
      }
    },
    "Link": {
      "type": "object",
      "description": "Represents a hypermedia link referenced from a IResource, according to HATEOAS.",
      "additionalProperties": false,
      "properties": {
        "href": {
          "type": [
            "string",
            "null"
          ],
          "description": "The associated relative URL."
        },
        "rel": {
          "type": [
            "string",
            "null"
          ],
          "description": "Specifies the relationship between the current document and the linked document/resource."
        },
        "method": {
          "type": [
            "string",
            "null"
          ],
          "description": "The method to access related resources."
        }
      }
    },
    "Pagination": {
      "type": "object",
      "description": "The pagination details.",
      "additionalProperties": false,
      "required": [
        "page_size",
        "page_number"
      ],
      "properties": {
        "page_size": {
          "type": "integer",
          "description": "The page size you requested.",
          "format": "int32"
        },
        "page_number": {
          "type": "integer",
          "description": "The page number you requested.",
          "format": "int32"
        },
        "total_pages": {
          "type": [
            "integer",
            "null"
          ],
          "description": "The total number of pages.",
          "format": "int32"
        },
        "total_items": {
          "type": [
            "integer",
            "null"
          ],
          "description": "The total number of items.",
          "format": "int32"
        }
      }
    }
  }
}