{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/dependency-track/json-schema/dependency-track-create-license-request-schema.json",
  "title": "CreateLicenseRequest",
  "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/CreateLicenseRequest",
  "type": "object",
  "properties": {
    "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"
    },
    "licenseId": {
      "type": "string",
      "description": "Identifier of the license",
      "maxLength": 255,
      "minLength": 1,
      "pattern": "^[a-zA-Z0-9_.\\-+]*$"
    },
    "licenseText": {
      "type": "string",
      "description": "Full license text"
    },
    "name": {
      "type": "string",
      "description": "Display name of the license",
      "maxLength": 255,
      "minLength": 1,
      "pattern": "^[\\p{IsWhite_Space}\\p{L}\\p{M}\\p{S}\\p{N}\\p{P}]*$"
    },
    "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"
    }
  },
  "required": [
    "licenseId",
    "name"
  ]
}