{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/aws-security-hub/json-schema/aws-security-hub-get-software-statistics-v2-response-schema.json",
  "title": "GetSoftwareStatisticsV2Response",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/aws-security-hub-softwarev2-api-openapi.yml#/components/schemas/GetSoftwareStatisticsV2Response",
  "type": "object",
  "properties": {
    "GroupByResults": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/GroupByResult"
      },
      "description": "The aggregated statistics about software based on the specified grouping rule."
    }
  },
  "required": [
    "GroupByResults"
  ],
  "$defs": {
    "GroupByResult": {
      "type": "object",
      "properties": {
        "GroupByField": {
          "type": "string",
          "description": "The attribute by which filtered security findings should be grouped."
        },
        "GroupByValues": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/GroupByValue"
          },
          "description": "An array of grouped values and their respective counts for each GroupByField."
        }
      }
    },
    "GroupByValue": {
      "type": "object",
      "properties": {
        "FieldValue": {
          "type": "string",
          "description": "The value of the field by which findings are grouped."
        },
        "Count": {
          "type": "integer",
          "description": "The number of findings for a specific FieldValue and GroupByField."
        }
      }
    }
  }
}