{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/axonflow/main/json-schema/axonflow-test-policy-response-schema.json",
  "title": "TestPolicyResponse",
  "x-generated": "2026-10-09",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/axonflow-policy-openapi.yml#/components/schemas/TestPolicyResponse",
  "type": "object",
  "properties": {
    "matched": {
      "type": "boolean",
      "description": "Whether the policy conditions matched"
    },
    "blocked": {
      "type": "boolean",
      "description": "Whether a block action would trigger"
    },
    "actions": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string"
          },
          "config": {
            "type": "object"
          },
          "message": {
            "type": "string"
          }
        }
      },
      "description": "Actions that would be triggered"
    },
    "explanation": {
      "type": "string",
      "description": "Human-readable explanation of the result"
    },
    "eval_time_ms": {
      "type": "number",
      "format": "float",
      "description": "Evaluation time in milliseconds"
    }
  }
}