{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/faxforagents/json-schema/faxforagents-policy-evaluation-schema.json",
  "title": "PolicyEvaluation",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/faxforagents-policies-api-openapi.yml#/components/schemas/PolicyEvaluation",
  "properties": {
    "decision": {
      "type": "string",
      "title": "Decision"
    },
    "rule": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Rule"
    },
    "reason": {
      "type": "string",
      "title": "Reason"
    },
    "policy_id": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Policy Id"
    },
    "policy_version_id": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Policy Version Id"
    },
    "policy_name": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Policy Name"
    },
    "version": {
      "anyOf": [
        {
          "type": "integer"
        },
        {
          "type": "null"
        }
      ],
      "title": "Version"
    },
    "denials": {
      "items": {
        "additionalProperties": true,
        "type": "object"
      },
      "type": "array",
      "title": "Denials"
    },
    "plan": {
      "additionalProperties": true,
      "type": "object",
      "title": "Plan"
    },
    "executed": {
      "type": "boolean",
      "title": "Executed",
      "default": false
    }
  },
  "additionalProperties": true,
  "type": "object",
  "required": [
    "decision",
    "rule",
    "reason",
    "policy_id",
    "policy_version_id",
    "policy_name",
    "version",
    "denials",
    "plan"
  ]
}