{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://oms.local/schemas/dispatch-acknowledgement.schema.json",
  "title": "OMS dispatch acknowledgement",
  "type": "object",
  "additionalProperties": false,
  "required": ["dispatch_id", "worker_record_id", "session_id", "operation_nonce", "acknowledged_at"],
  "properties": {
    "dispatch_id": { "type": "string", "pattern": "^[a-z0-9](?:[a-z0-9-]{0,62}[a-z0-9])?$" },
    "worker_record_id": { "type": "string", "pattern": "^[a-z0-9](?:[a-z0-9-]{0,62}[a-z0-9])?$" },
    "session_id": { "type": "string", "pattern": "^[a-z0-9](?:[a-z0-9-]{0,62}[a-z0-9])?$" },
    "operation_nonce": { "type": "string", "pattern": "^[a-z0-9](?:[a-z0-9-]{0,62}[a-z0-9])?$" },
    "acknowledged_at": { "type": "string", "minLength": 20, "maxLength": 24 }
  }
}
