{
  "$schema": "https://json-structure.org/meta/core/v0/#",
  "$id": "https://raw.githubusercontent.com/api-evangelist/amazon-inspector/refs/heads/main/json-structure/inspector-package-aggregation-structure.json",
  "name": "PackageAggregation",
  "description": "The details that define an aggregation based on operating system package type.",
  "type": "object",
  "properties": {
    "packageNames": {
      "allOf": [
        {
          "$ref": "#/components/schemas/StringFilterList"
        },
        {
          "description": "The names of packages to aggregate findings on."
        }
      ]
    },
    "sortBy": {
      "allOf": [
        {
          "$ref": "#/components/schemas/PackageSortBy"
        },
        {
          "description": "The value to sort results by."
        }
      ]
    },
    "sortOrder": {
      "allOf": [
        {
          "$ref": "#/components/schemas/SortOrder"
        },
        {
          "description": "The order to sort results by."
        }
      ]
    }
  }
}