Skip to content
HALOWERK

Paketwerk

package spdx policy expression

Evaluate a supplied license expression under an explicit allowlist of license and exception identifiers.

POST https://paket.halowerk.com/v1/package-spdx-policy-expression

Inputs

Fields of the published input schema
FieldTypeRequiredDescription
expressionstringYes
allowedReferenceYes
exceptionsReferenceYes
Show full input schema
{
  "type": "object",
  "properties": {
    "expression": {
      "type": "string",
      "maxLength": 1000,
      "minLength": 1
    },
    "allowed": {
      "$ref": "#/$defs/s0"
    },
    "exceptions": {
      "$ref": "#/$defs/s0"
    }
  },
  "required": [
    "expression",
    "allowed",
    "exceptions"
  ],
  "additionalProperties": false,
  "$id": "urn:h:w5:A1:input",
  "$defs": {
    "s0": {
      "type": "array",
      "items": {
        "type": "string",
        "maxLength": 256,
        "minLength": 1
      },
      "maxItems": 200,
      "minItems": 0
    }
  }
}

Open original schema

Published input example

{
  "expression": "MIT OR (GPL-2.0-only AND Apache-2.0)",
  "allowed": [
    "MIT"
  ],
  "exceptions": []
}

Result & documentation

Machine-readable documentation of this hub

Source of this page: the published HALOWERK catalog. Updated: 2026-11-18 UTC.

More endpoints in this hub

All endpoints in this hub โ†’