{ "$schema": "https://json-schema.org/draft/2020-12/schema", "$id": "https://freecad.org/schemas/freecad-web-cloud-configure-recompute-v1.json", "oneOf": [ { "$ref": "#/$defs/request" }, { "$ref": "#/$defs/result" }, { "$ref": "#/$defs/error" } ], "$defs": { "payload": { "type": "object", "required": ["schema", "fixture", "url", "tokenAuth", "tokenSecret", "tcpPort", "protocolVersion", "region"], "properties": { "schema": { "const": "freecad-web-cloud/configure-recompute/v1" }, "fixture": { "const": "CloudKernelConfiguration" }, "url": { "type": "string", "minLength": 1 }, "tokenAuth": { "type": "string", "minLength": 1 }, "tokenSecret": { "type": "string", "minLength": 1 }, "tcpPort": { "type": "string", "minLength": 1 }, "protocolVersion": { "type": "string", "minLength": 1 }, "region": { "type": "string", "minLength": 1 } }, "additionalProperties": false }, "request": { "type": "object", "required": ["schema", "version", "kind", "requestId", "command", "payload"], "properties": { "schema": { "const": "freecad-web-facade/v1" }, "version": { "const": 1 }, "kind": { "const": "request" }, "requestId": { "type": "string", "minLength": 1 }, "command": { "const": "cloud.configureRecompute" }, "payload": { "$ref": "#/$defs/payload" }, "documentId": { "type": "string", "minLength": 1 } }, "additionalProperties": false }, "typedResult": { "type": "object", "required": ["schema", "module", "action", "configuration", "recompute"], "properties": { "schema": { "const": "freecad-web-cloud/configure-recompute/v1" }, "module": { "const": "Cloud" }, "action": { "const": "configure/recompute" }, "configuration": { "type": "object" }, "recompute": { "type": "object" } }, "additionalProperties": false }, "result": { "type": "object", "required": ["schema", "version", "kind", "requestId", "result"], "properties": { "schema": { "const": "freecad-web-facade/v1" }, "version": { "const": 1 }, "kind": { "const": "result" }, "requestId": { "type": "string", "minLength": 1 }, "result": { "$ref": "#/$defs/typedResult" } }, "additionalProperties": false }, "error": { "type": "object", "required": ["schema", "version", "kind", "requestId", "error"], "properties": { "schema": { "const": "freecad-web-facade/v1" }, "version": { "const": 1 }, "kind": { "const": "error" }, "requestId": { "type": "string", "minLength": 1 }, "error": { "type": "object", "required": ["code", "message"], "properties": { "code": { "type": "string", "minLength": 1 }, "message": { "type": "string", "minLength": 1 }, "diagnostic": { "type": "object" } }, "additionalProperties": false } }, "additionalProperties": false } } }