{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/plainrouter/json-schema/plainrouter-action-policy-read-schema.json",
  "title": "ActionPolicyRead",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/plainrouter-actionreadapi-api-openapi.yml#/components/schemas/ActionPolicyRead",
  "type": "object",
  "properties": {
    "data": {
      "type": "object",
      "properties": {
        "id": {
          "type": [
            "integer",
            "null"
          ]
        },
        "workspace_id": {
          "type": "integer"
        },
        "execution_mode": {
          "type": "string",
          "enum": [
            "ask",
            "full"
          ]
        },
        "outcome_check_after_hours": {
          "type": "integer"
        },
        "anomaly_threshold_percent": {
          "type": "string"
        }
      },
      "required": [
        "id",
        "workspace_id",
        "execution_mode",
        "outcome_check_after_hours",
        "anomaly_threshold_percent"
      ]
    }
  },
  "required": [
    "data"
  ]
}