From 727384f4693774d1007a098f9a4e8f26410645a5 Mon Sep 17 00:00:00 2001 From: Claude Date: Thu, 8 Jan 2026 14:09:00 +0000 Subject: [PATCH] Fix MJSON configuration validation issues - product.mjson: Remove duplicate 'tags' property definition - collection-rule.mjson: Fix property name mismatch (productProperty -> column) - order-transaction.mjson: Add missing 'kind' property to propertyDescriptors - collection.mjson: Add missing 'type' property to propertyDescriptors All changes ensure proper MJSON structure with correct property descriptor references and inheritance logic. --- data/model/collection-rule.mjson | 2 +- data/model/collection.mjson | 1 + data/model/order-transaction.mjson | 3 ++- data/model/product.mjson | 7 ------- 4 files changed, 4 insertions(+), 9 deletions(-) diff --git a/data/model/collection-rule.mjson b/data/model/collection-rule.mjson index 4bdecc2e..d1f22840 100644 --- a/data/model/collection-rule.mjson +++ b/data/model/collection-rule.mjson @@ -21,7 +21,7 @@ "column": { "prototype": "mod/core/meta/property-descriptor", "values": { - "name": "productProperty", + "name": "column", "valueType": "string" } }, diff --git a/data/model/collection.mjson b/data/model/collection.mjson index 0edacd4f..b85c59fc 100644 --- a/data/model/collection.mjson +++ b/data/model/collection.mjson @@ -9,6 +9,7 @@ {"@": "descriptionHtml"}, {"@": "image"}, {"@": "ruleSet"}, + {"@": "type"}, {"@": "products"} ], "objectDescriptorModule": { diff --git a/data/model/order-transaction.mjson b/data/model/order-transaction.mjson index 757858fe..4eea686d 100644 --- a/data/model/order-transaction.mjson +++ b/data/model/order-transaction.mjson @@ -6,7 +6,8 @@ "propertyDescriptors": [ {"@": "order"}, {"@": "amount"}, - {"@": "paymentGateway"} + {"@": "paymentGateway"}, + {"@": "kind"} ], "objectDescriptorModule": { "%": "./order-transaction.mjson" diff --git a/data/model/product.mjson b/data/model/product.mjson index 3f42b67e..09087a50 100644 --- a/data/model/product.mjson +++ b/data/model/product.mjson @@ -122,13 +122,6 @@ "name": "unitCost", "valueType": "number" } - }, - "tags": { - "prototype": "mod/core/meta/property-descriptor", - "values": { - "name": "tags", - "valueType": "array" - } }, "notes": { "prototype": "mod/core/meta/property-descriptor",