{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/opentext-cybersecurity/main/json-schema/opentext-cybersecurity-open-source-component-list-response-schema.json",
  "title": "OpenSourceComponentListResponse",
  "description": "Generic List Response",
  "x-generated": "2026-10-03",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/opentext-cybersecurity-open-source-components-api-openapi.yml#/components/schemas/OpenSourceComponentListResponse",
  "type": "object",
  "properties": {
    "items": {
      "description": "The list of items",
      "type": "array",
      "items": {
        "$ref": "#/$defs/OpenSourceComponent"
      }
    },
    "totalCount": {
      "format": "int32",
      "description": "Total count of items",
      "type": "integer"
    },
    "offset": {
      "format": "int32",
      "description": "Offset of the starting record. 0 indicates the first record.",
      "type": "integer"
    },
    "limit": {
      "format": "int32",
      "description": "Maximum records to return.",
      "type": "integer"
    }
  },
  "$defs": {
    "OpenSourceComponent": {
      "type": "object",
      "properties": {
        "componentHash": {
          "type": "string"
        },
        "componentName": {
          "type": "string"
        },
        "componentVersionName": {
          "type": "string"
        },
        "licenses": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/OpenSourceComponentLicense"
          }
        },
        "vulnerabilityCounts": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/VulnerabilityCount"
          }
        },
        "releases": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/OpenSourceComponentRelease"
          }
        },
        "packageUrl": {
          "type": "string"
        },
        "scanTool": {
          "type": "string"
        }
      }
    },
    "OpenSourceComponentLicense": {
      "type": "object",
      "properties": {
        "name": {
          "type": "string"
        }
      }
    },
    "OpenSourceComponentRelease": {
      "type": "object",
      "properties": {
        "applicationId": {
          "format": "int32",
          "type": "integer"
        },
        "applicationName": {
          "type": "string"
        },
        "releaseId": {
          "format": "int32",
          "type": "integer"
        },
        "releaseName": {
          "type": "string"
        }
      }
    },
    "VulnerabilityCount": {
      "type": "object",
      "properties": {
        "severityId": {
          "format": "int32",
          "type": "integer",
          "readOnly": true
        },
        "severity": {
          "type": "string",
          "readOnly": true
        },
        "count": {
          "format": "int32",
          "type": "integer"
        }
      }
    }
  }
}