{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/bernstein-run/json-schema/bernstein-run-resolve-request-schema.json",
  "title": "ResolveRequest",
  "description": "Body for ``POST /approvals/{id}/resolve``.\n\nThe reply must echo the exact ``nonce`` hex string issued when the\napproval was queued. ``nonce`` defaults to an empty string at the\nschema layer so a missing field flows through the handler as a\nnonce mismatch (``409 NONCE_MISMATCH``) rather than a Pydantic 422\nvalidation error, matching the documented contract.",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/bernstein-run-approvals-api-openapi.yml#/components/schemas/ResolveRequest",
  "properties": {
    "decision": {
      "type": "string",
      "enum": [
        "allow",
        "reject",
        "always"
      ],
      "title": "Decision"
    },
    "nonce": {
      "type": "string",
      "title": "Nonce",
      "default": ""
    },
    "reason": {
      "type": "string",
      "title": "Reason",
      "default": ""
    }
  },
  "type": "object",
  "required": [
    "decision"
  ]
}