{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/dependency-track/json-schema/dependency-track-license-response-schema.json",
  "title": "LicenseResponse",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/dependency-track-license-api-openapi.yml#/components/schemas/LicenseResponse",
  "type": "object",
  "properties": {
    "isCustomLicense": {
      "type": "boolean",
      "description": "Whether the license is a custom license created by a user"
    },
    "isDeprecatedLicenseId": {
      "type": "boolean",
      "description": "Whether the licenseId has been deprecated by SPDX"
    },
    "isFsfLibre": {
      "type": "boolean",
      "description": "Whether the license is FSF libre"
    },
    "isOsiApproved": {
      "type": "boolean",
      "description": "Whether the license is approved by the OSI"
    },
    "licenseComments": {
      "type": "string",
      "description": "Comments about the license"
    },
    "licenseGroups": {
      "type": "array",
      "description": "License groups the license belongs to",
      "items": {
        "$ref": "#/$defs/LicenseGroup"
      }
    },
    "licenseId": {
      "type": "string",
      "description": "Identifier of the license"
    },
    "licenseText": {
      "type": "string",
      "description": "Full license text"
    },
    "name": {
      "type": "string",
      "description": "Display name of the license"
    },
    "seeAlso": {
      "type": "array",
      "description": "Additional URLs with information about the license",
      "items": {
        "type": "string",
        "description": "Additional URLs with information about the license"
      }
    },
    "standardLicenseHeader": {
      "type": "string",
      "description": "Standard license header typically added to the top of source code"
    },
    "standardLicenseTemplate": {
      "type": "string",
      "description": "Standard license template used to derive the license text"
    },
    "uuid": {
      "type": "string",
      "format": "uuid",
      "description": "UUID of the license"
    }
  },
  "required": [
    "isCustomLicense",
    "isDeprecatedLicenseId",
    "isFsfLibre",
    "isOsiApproved",
    "licenseGroups",
    "licenseId",
    "name",
    "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"
      ]
    }
  }
}