Expose operation envelopes in CultNet CSharp

This commit is contained in:
Meta Vens 2026-07-10 11:17:33 +01:00
commit 94f95e380d
6 changed files with 138 additions and 0 deletions

View file

@ -0,0 +1,19 @@
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://github.com/GameCult/cultnet-ts/contracts/cultnet.operation-request.schema.json",
"title": "CultNet Operation Request",
"type": "object",
"required": ["schemaVersion", "messageId", "serviceId", "operation", "payloadSchema", "payload"],
"additionalProperties": false,
"properties": {
"schemaVersion": { "const": "cultnet.operation_request.v0" },
"messageId": { "type": "string", "minLength": 1 },
"serviceId": { "type": "string", "minLength": 1 },
"operation": { "type": "string", "minLength": 1 },
"payloadSchema": { "type": "string", "minLength": 1 },
"payloadEncoding": { "const": "messagepack-base64" },
"payload": { "type": "string", "minLength": 1, "contentEncoding": "base64" },
"sourceRuntimeId": { "type": "string", "minLength": 1 },
"targetRuntimeId": { "type": "string", "minLength": 1 }
}
}

View file

@ -0,0 +1,20 @@
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://github.com/GameCult/cultnet-ts/contracts/cultnet.operation-response.schema.json",
"title": "CultNet Operation Response",
"type": "object",
"required": ["schemaVersion", "messageId", "serviceId", "operation", "status", "payloadSchema", "payload"],
"additionalProperties": false,
"properties": {
"schemaVersion": { "const": "cultnet.operation_response.v0" },
"messageId": { "type": "string", "minLength": 1 },
"serviceId": { "type": "string", "minLength": 1 },
"operation": { "type": "string", "minLength": 1 },
"status": { "type": "string", "minLength": 1 },
"payloadSchema": { "type": "string", "minLength": 1 },
"payloadEncoding": { "const": "messagepack-base64" },
"payload": { "type": "string", "minLength": 1, "contentEncoding": "base64" },
"diagnostics": { "type": "array", "items": { "type": "string" } },
"sourceRuntimeId": { "type": "string", "minLength": 1 }
}
}