{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/dependency-track/json-schema/dependency-track-license-group-response-schema.json",
  "title": "LicenseGroupResponse",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/dependency-track-licensegroup-api-openapi.yml#/components/schemas/LicenseGroupResponse",
  "type": "object",
  "properties": {
    "licenses": {
      "type": "array",
      "description": "Licenses belonging to the license group",
      "items": {
        "$ref": "#/$defs/License"
      }
    },
    "name": {
      "type": "string",
      "description": "Name of the license group"
    },
    "riskWeight": {
      "type": "integer",
      "format": "int32",
      "description": "Risk weight assigned to violations of this group"
    },
    "uuid": {
      "type": "string",
      "format": "uuid",
      "description": "UUID of the license group"
    }
  },
  "required": [
    "licenses",
    "name",
    "riskWeight",
    "uuid"
  ],
  "$defs": {
    "License": {
      "type": "object",
      "properties": {
        "isCustomLicense": {
          "type": "boolean"
        },
        "isDeprecatedLicenseId": {
          "type": "boolean"
        },
        "isFsfLibre": {
          "type": "boolean"
        },
        "isOsiApproved": {
          "type": "boolean"
        },
        "licenseComments": {
          "type": "string"
        },
        "licenseGroups": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/LicenseGroup"
          }
        },
        "licenseId": {
          "type": "string",
          "maxLength": 255,
          "minLength": 1,
          "pattern": "^[a-zA-Z0-9_.\\-+]*$"
        },
        "licenseText": {
          "type": "string"
        },
        "name": {
          "type": "string",
          "maxLength": 255,
          "minLength": 1,
          "pattern": "^[\\p{IsWhite_Space}\\p{L}\\p{M}\\p{S}\\p{N}\\p{P}]*$"
        },
        "seeAlso": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "standardLicenseHeader": {
          "type": "string"
        },
        "standardLicenseTemplate": {
          "type": "string"
        },
        "uuid": {
          "type": "string",
          "format": "uuid"
        }
      },
      "required": [
        "licenseId",
        "name",
        "uuid"
      ]
    },
    "LicenseGroup": {
      "type": "object",
      "properties": {
        "licenses": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/License"
          }
        },
        "name": {
          "type": "string",
          "maxLength": 255,
          "minLength": 1,
          "pattern": "^[\\p{IsWhite_Space}\\p{L}\\p{M}\\p{S}\\p{N}\\p{P}]*$"
        },
        "riskWeight": {
          "type": "integer",
          "format": "int32"
        },
        "uuid": {
          "type": "string",
          "format": "uuid"
        }
      },
      "required": [
        "name",
        "uuid"
      ]
    }
  }
}