{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://github.com/mmerterden/multi-agent-pipeline/pipeline/schemas/resume-request.schema.json",
  "title": "Resume request",
  "description": "The body of POST /v1/runs/{id}/resume. `answers` answers the question the run is parked on, keyed by its pendingQuestion id; the answer is recorded before the plan is returned. Any other key is refused (409 wrong-question), and answers to a run that is not waiting are refused (409 not-waiting).",
  "type": "object",
  "additionalProperties": false,
  "required": ["contractVersion"],
  "properties": {
    "contractVersion": {
      "type": "string",
      "pattern": "^1\\.[0-9]+\\.[0-9]+$",
      "x-sensitivity": "none"
    },
    "answers": {
      "type": "object",
      "x-sensitivity": "none",
      "propertyNames": {
        "pattern": "^[a-z][a-z0-9-]*$"
      },
      "additionalProperties": {
        "anyOf": [
          {
            "type": "string"
          },
          {
            "type": "array",
            "minItems": 1,
            "items": {
              "type": "string"
            }
          }
        ]
      }
    }
  }
}
