{
  "$defs": {
    "ActionCode": {
      "description": "What an action item is about.",
      "enum": [
        "missing-dependencies",
        "unknown-license",
        "incompatible-licenses",
        "incompatible-group",
        "denied-license",
        "license-not-allowed",
        "policy-exceeded",
        "copyleft-dependency",
        "review-licenses",
        "unmatched-classification",
        "unmapped-classifier",
        "dropped-license-terms",
        "mixed-classifiers"
      ],
      "title": "ActionCode",
      "type": "string"
    },
    "ActionItem": {
      "description": "An action the user should take.",
      "properties": {
        "code": {
          "$ref": "#/$defs/ActionCode"
        },
        "severity": {
          "default": "warning",
          "enum": [
            "warning",
            "error"
          ],
          "title": "Severity",
          "type": "string"
        },
        "package": {
          "default": "",
          "title": "Package",
          "type": "string"
        },
        "message": {
          "title": "Message",
          "type": "string"
        }
      },
      "required": [
        "code",
        "message"
      ],
      "title": "ActionItem",
      "type": "object"
    },
    "IncompatibleGroup": {
      "description": "Dependency licenses no outbound license satisfies together, though\nevery pair of them can share one.\n\nA group of one is a dual-licensed dependency none of whose alternatives\nany outbound license satisfies.",
      "properties": {
        "licenses": {
          "items": {
            "type": "string"
          },
          "title": "Licenses",
          "type": "array"
        }
      },
      "required": [
        "licenses"
      ],
      "title": "IncompatibleGroup",
      "type": "object"
    },
    "IncompatiblePair": {
      "description": "Two dependency licenses with no common outbound license.\n\nThe pair is unordered; `license_a`/`license_b` carry no meaning\nbeyond which was encountered first.",
      "properties": {
        "license_a": {
          "title": "License A",
          "type": "string"
        },
        "license_b": {
          "title": "License B",
          "type": "string"
        }
      },
      "required": [
        "license_a",
        "license_b"
      ],
      "title": "IncompatiblePair",
      "type": "object"
    },
    "LicenseCategory": {
      "description": "Classification of a license by its copyleft/permissive nature.",
      "enum": [
        "permissive",
        "weak-copyleft",
        "strong-copyleft",
        "network-copyleft",
        "proprietary",
        "unknown"
      ],
      "title": "LicenseCategory",
      "type": "string"
    },
    "LicenseSource": {
      "description": "How the license was detected.",
      "enum": [
        "pep639",
        "metadata",
        "classifier",
        "override",
        "unknown"
      ],
      "title": "LicenseSource",
      "type": "string"
    },
    "OsadlData": {
      "description": "The OSADL compatibility data an audit used.",
      "properties": {
        "origin": {
          "enum": [
            "bundled",
            "refreshed"
          ],
          "title": "Origin",
          "type": "string"
        },
        "timestamp": {
          "title": "Timestamp",
          "type": "string"
        }
      },
      "required": [
        "origin",
        "timestamp"
      ],
      "title": "OsadlData",
      "type": "object"
    },
    "PackageLicense": {
      "description": "License information for a single package.",
      "properties": {
        "name": {
          "title": "Name",
          "type": "string"
        },
        "version": {
          "title": "Version",
          "type": "string"
        },
        "license_expression": {
          "default": "UNKNOWN",
          "title": "License Expression",
          "type": "string"
        },
        "declared_license": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Declared License"
        },
        "license_source": {
          "$ref": "#/$defs/LicenseSource",
          "default": "unknown"
        },
        "category": {
          "$ref": "#/$defs/LicenseCategory",
          "default": "unknown"
        },
        "category_overridden": {
          "default": false,
          "title": "Category Overridden",
          "type": "boolean"
        },
        "parent": {
          "default": "",
          "title": "Parent",
          "type": "string"
        },
        "license_text": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "License Text"
        },
        "ignored": {
          "default": false,
          "title": "Ignored",
          "type": "boolean"
        },
        "ignore_reason": {
          "default": "",
          "title": "Ignore Reason",
          "type": "string"
        }
      },
      "required": [
        "name",
        "version"
      ],
      "title": "PackageLicense",
      "type": "object"
    }
  },
  "description": "Complete analysis output.",
  "properties": {
    "schema_version": {
      "const": 2,
      "default": 2,
      "title": "Schema Version",
      "type": "integer"
    },
    "tool_version": {
      "title": "Tool Version",
      "type": "string"
    },
    "project_name": {
      "default": "",
      "title": "Project Name",
      "type": "string"
    },
    "source": {
      "default": "",
      "title": "Source",
      "type": "string"
    },
    "osadl_data": {
      "anyOf": [
        {
          "$ref": "#/$defs/OsadlData"
        },
        {
          "type": "null"
        }
      ],
      "default": null
    },
    "packages": {
      "items": {
        "$ref": "#/$defs/PackageLicense"
      },
      "title": "Packages",
      "type": "array"
    },
    "missing_dependencies": {
      "items": {
        "type": "string"
      },
      "title": "Missing Dependencies",
      "type": "array"
    },
    "incompatible_pairs": {
      "items": {
        "$ref": "#/$defs/IncompatiblePair"
      },
      "title": "Incompatible Pairs",
      "type": "array"
    },
    "incompatible_groups": {
      "items": {
        "$ref": "#/$defs/IncompatibleGroup"
      },
      "title": "Incompatible Groups",
      "type": "array"
    },
    "recommended_licenses": {
      "items": {
        "type": "string"
      },
      "title": "Recommended Licenses",
      "type": "array"
    },
    "review_licenses": {
      "items": {
        "type": "string"
      },
      "title": "Review Licenses",
      "type": "array"
    },
    "action_items": {
      "items": {
        "$ref": "#/$defs/ActionItem"
      },
      "title": "Action Items",
      "type": "array"
    },
    "policy_passed": {
      "anyOf": [
        {
          "type": "boolean"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "title": "Policy Passed"
    }
  },
  "title": "AnalysisReport",
  "type": "object"
}
