{ "$schema": "https://json-schema.org/draft/2020-12/schema", "$id": "https://freecad.org/schemas/freecad-web-cloud-inspect-source-inventory-v1.json", "oneOf": [ { "$ref": "#/$defs/request" }, { "$ref": "#/$defs/result" }, { "$ref": "#/$defs/error" } ], "$defs": { "payload": { "type": "object", "required": ["schema", "sourceRevision", "inventoryRevision", "readOnly"], "properties": { "schema": { "const": "freecad-web-cloud/inspect-source-inventory/v1" }, "sourceRevision": { "type": "string", "minLength": 1 }, "inventoryRevision": { "type": "string", "minLength": 1 }, "readOnly": { "const": true } }, "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.inspectSourceInventory" }, "payload": { "$ref": "#/$defs/payload" }, "documentId": { "type": "string", "minLength": 1 } }, "additionalProperties": false }, "typedResult": { "type": "object", "required": ["schema", "module", "action", "sourceRevision", "inventoryRevision", "sourceEntry", "registrationEntry", "targets", "registeredTypes", "registeredFormatExtensions", "methodCount", "objectTypeCount", "formatEvidenceCount", "pythonApiCount", "guiPythonApiCount", "dependencies", "guiExcluded", "readOnly", "summary"], "properties": { "schema": { "const": "freecad-web-cloud/inspect-source-inventory/v1" }, "module": { "const": "Cloud" }, "action": { "const": "inspect/source-inventory" }, "sourceRevision": { "type": "string" }, "inventoryRevision": { "type": "string" }, "sourceEntry": { "type": "string" }, "registrationEntry": { "type": "string" }, "targets": { "type": "array", "items": { "type": "string" } }, "registeredTypes": { "type": "array", "items": { "type": "string" } }, "registeredFormatExtensions": { "type": "array", "items": { "type": "string" } }, "methodCount": { "type": "integer" }, "objectTypeCount": { "type": "integer" }, "formatEvidenceCount": { "type": "integer" }, "pythonApiCount": { "type": "integer" }, "guiPythonApiCount": { "type": "integer" }, "dependencies": { "type": "array", "items": { "type": "string" } }, "guiExcluded": { "type": "array", "items": { "type": "string" } }, "readOnly": { "const": true }, "summary": { "type": "string" } }, "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" }, "message": { "type": "string" }, "diagnostic": { "type": "object" } }, "additionalProperties": false } }, "additionalProperties": false } } }