{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/dependency-track/json-schema/dependency-track-policy-condition-response-schema.json",
  "title": "PolicyConditionResponse",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/dependency-track-policycondition-api-openapi.yml#/components/schemas/PolicyConditionResponse",
  "type": "object",
  "properties": {
    "operator": {
      "type": "string",
      "description": "Operator used to compare the subject to the value",
      "enum": [
        "IS",
        "IS_NOT",
        "MATCHES",
        "NO_MATCH",
        "NUMERIC_GREATER_THAN",
        "NUMERIC_LESS_THAN",
        "NUMERIC_EQUAL",
        "NUMERIC_NOT_EQUAL",
        "NUMERIC_GREATER_THAN_OR_EQUAL",
        "NUMERIC_LESSER_THAN_OR_EQUAL",
        "CONTAINS_ALL",
        "CONTAINS_ANY"
      ]
    },
    "subject": {
      "type": "string",
      "description": "Subject the condition evaluates",
      "enum": [
        "AGE",
        "COORDINATES",
        "CPE",
        "EXPRESSION",
        "LICENSE",
        "LICENSE_GROUP",
        "PACKAGE_URL",
        "SEVERITY",
        "SWID_TAGID",
        "VERSION",
        "COMPONENT_HASH",
        "IS_INTERNAL",
        "CWE",
        "VULNERABILITY_ID",
        "VERSION_DISTANCE",
        "EPSS"
      ]
    },
    "uuid": {
      "type": "string",
      "format": "uuid",
      "description": "UUID of the policy condition"
    },
    "value": {
      "type": "string",
      "description": "Value the subject is compared to"
    },
    "violationType": {
      "type": "string",
      "description": "Violation type produced when the condition matches",
      "enum": [
        "LICENSE",
        "SECURITY",
        "OPERATIONAL"
      ]
    }
  },
  "required": [
    "operator",
    "subject",
    "uuid",
    "value"
  ]
}