From 2317e9eced6fe3e0ab9446647a7f49a69e757963 Mon Sep 17 00:00:00 2001 From: Claude Date: Thu, 8 Jan 2026 14:39:44 +0000 Subject: [PATCH 1/2] Fix MJSON configuration validation issues MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Fixed typo in printing-device.mjson: "ProntDocumentDescriptor" → "PrintDocumentDescriptor" - Removed duplicate definition of "toolCompatibilityDeviceList" in device.mjson - Removed orphaned property definitions from device.mjson: - deviceHostConnections - tools - toolForDevices These properties were defined but not included in propertyDescriptors array, making them unreachable by the system. --- data/model/device/device.mjson | 44 ------------------------- data/model/device/printing-device.mjson | 4 +-- 2 files changed, 2 insertions(+), 46 deletions(-) diff --git a/data/model/device/device.mjson b/data/model/device/device.mjson index 8955ce6..704eed2 100644 --- a/data/model/device/device.mjson +++ b/data/model/device/device.mjson @@ -244,51 +244,7 @@ "description": "This device's connections, as the host, to its node device" } }, - "deviceHostConnections": { - "prototype": "mod/core/meta/property-descriptor", - "values": { - "name": "deviceHostConnections", - "cardinality": -1, - "inversePropertyName": "node", - "valueDescriptor": {"@": "root"}, - "description": "This device connections, as a node, to its host(s), if shared" - } - }, - - "toolCompatibilityDeviceList": { - "prototype": "mod/core/meta/property-descriptor", - "values": { - "name": "toolCompatibilityDeviceList", - "cardinality": -1, - "inversePropertyName": "compatibleTools", - "valueDescriptor": {"@": "root"}, - "description": "The list of devices that can use this device as a tools" - } - }, - - "tools": { - "prototype": "mod/core/meta/property-descriptor", - "values": { - "name": "tools", - "cardinality": -1, - "inversePropertyName": "usedAsToolsByDevices", - "valueDescriptor": {"@": "root"}, - "description": "The list of accessories actually used with the device" - } - }, - - "toolForDevices": { - "prototype": "mod/core/meta/property-descriptor", - "values": { - "name": "toolForDevices", - "cardinality": -1, - "inversePropertyName": "tools", - "valueDescriptor": {"@": "root"}, - "description": "The list of accessories actually used for by the device" - } - }, - "ipAddress": { "prototype": "mod/core/meta/property-descriptor", "values": { diff --git a/data/model/device/printing-device.mjson b/data/model/device/printing-device.mjson index b4c145c..ae9b848 100644 --- a/data/model/device/printing-device.mjson +++ b/data/model/device/printing-device.mjson @@ -23,7 +23,7 @@ "ImagingDeviceDescriptor": { "object": "./imaging-device.mjson" }, - "ProntDocumentDescriptor": { + "PrintDocumentDescriptor": { "object": "./print-document.mjson" }, @@ -33,7 +33,7 @@ "name": "activePrintDocument", "cardinality": 1, "valueType": "object", - "valueDescriptor": {"@": "ProntDocumentDescriptor"}, + "valueDescriptor": {"@": "PrintDocumentDescriptor"}, "description": "The current document to be printed" } } From 0d8e8c687a8ef7d746de0706a91be87d50aab18f Mon Sep 17 00:00:00 2001 From: Claude Date: Thu, 8 Jan 2026 14:44:38 +0000 Subject: [PATCH 2/2] Add orphaned properties to propertyDescriptors array Instead of removing deviceHostConnections, tools, and toolForDevices, these properties are now properly registered in the propertyDescriptors array. This makes them accessible to the MJSON system while preserving their definitions and relationship configurations. --- data/model/device/device.mjson | 36 ++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) diff --git a/data/model/device/device.mjson b/data/model/device/device.mjson index 704eed2..beb6cd6 100644 --- a/data/model/device/device.mjson +++ b/data/model/device/device.mjson @@ -26,6 +26,10 @@ {"@": "nodeDeviceConnections"}, {"@": "possibleHostDeviceConnections"}, {"@": "hostDeviceConnections"}, + {"@": "deviceHostConnections"}, + + {"@": "tools"}, + {"@": "toolForDevices"}, {"@": "ipAddress"}, {"@": "port"}, @@ -244,6 +248,38 @@ "description": "This device's connections, as the host, to its node device" } }, + "deviceHostConnections": { + "prototype": "mod/core/meta/property-descriptor", + "values": { + "name": "deviceHostConnections", + "cardinality": -1, + "inversePropertyName": "node", + "valueDescriptor": {"@": "root"}, + "description": "This device connections, as a node, to its host(s), if shared" + } + }, + + "tools": { + "prototype": "mod/core/meta/property-descriptor", + "values": { + "name": "tools", + "cardinality": -1, + "inversePropertyName": "usedAsToolsByDevices", + "valueDescriptor": {"@": "root"}, + "description": "The list of accessories actually used with the device" + } + }, + + "toolForDevices": { + "prototype": "mod/core/meta/property-descriptor", + "values": { + "name": "toolForDevices", + "cardinality": -1, + "inversePropertyName": "tools", + "valueDescriptor": {"@": "root"}, + "description": "The list of accessories actually used for by the device" + } + }, "ipAddress": { "prototype": "mod/core/meta/property-descriptor",