{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://oms.local/schemas/worker-record-dispatch-result.schema.json",
  "title": "OMS worker dispatch result request",
  "type": "object",
  "additionalProperties": false,
  "required": ["dispatch_id", "status", "summary", "operation_nonce"],
  "properties": {
    "dispatch_id": { "type": "string", "pattern": "^[a-z0-9](?:[a-z0-9-]{0,62}[a-z0-9])?$" },
    "status": { "enum": ["done", "blocked"] },
    "summary": { "type": "string", "minLength": 1, "maxLength": 8192 },
    "operation_nonce": { "type": "string", "pattern": "^[a-z0-9](?:[a-z0-9-]{0,62}[a-z0-9])?$" }
  }
}
