{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/checkmarx/main/json-schema/checkmarx-license-schema.json",
  "title": "License",
  "x-generated": "2026-10-04",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/checkmarx-risk-reports-api-openapi.yml#/components/schemas/License",
  "type": "object",
  "properties": {
    "name": {
      "type": "string",
      "description": "License name"
    },
    "riskLevel": {
      "type": "string",
      "enum": [
        "High",
        "Medium",
        "Low",
        "Unknown"
      ],
      "description": "License risk level"
    },
    "copyleftType": {
      "type": "string",
      "enum": [
        "Yes",
        "Partial",
        "No",
        "Unknown"
      ],
      "description": "Whether the license has copyleft requirements"
    },
    "referenceUrl": {
      "type": "string",
      "format": "uri",
      "description": "License reference URL"
    },
    "packageCount": {
      "type": "integer",
      "description": "Number of packages using this license"
    }
  }
}