From d73be92320dd92077a8704c1338a9c6a256668a8 Mon Sep 17 00:00:00 2001 From: Hao Lin Date: Mon, 11 Aug 2025 15:57:56 -0700 Subject: [PATCH] Enrich the product-brand schema to include the fields required by Project Brand Concierge --- .../product/product-brand.example.1.json | 20 ++++++- .../product/product-brand.schema.json | 57 +++++++++++++++++++ 2 files changed, 76 insertions(+), 1 deletion(-) diff --git a/components/fieldgroups/product/product-brand.example.1.json b/components/fieldgroups/product/product-brand.example.1.json index e41af1076..c7880dc99 100644 --- a/components/fieldgroups/product/product-brand.example.1.json +++ b/components/fieldgroups/product/product-brand.example.1.json @@ -1,4 +1,22 @@ { "xdm:brandPageURL": "https://www.adobe.com/acrobat.html", - "xdm:brandImageURL": "video products" + "xdm:brandImageURL": "video products", + "xdm:brandLogoURL": "https://www.adobe.com/acrobat.html", + "xdm:brandCardBackgroundColor": "red", + "xdm:learningResourceURL": "https://www.adobe.com/acrobat.html", + "xdm:brandDetails": ["video products"], + "xdm:actions": [ + { + "xdm:name": "buy", + "xdm:type": "primary", + "xdm:title": "Buy Now", + "xdm:url": "https://www.adobe.com/acrobat.html" + }, + { + "xdm:name": "learn", + "xdm:type": "secondary", + "xdm:title": "Learn More", + "xdm:url": "https://www.adobe.com/acrobat.html" + } + ] } diff --git a/components/fieldgroups/product/product-brand.schema.json b/components/fieldgroups/product/product-brand.schema.json index 03b1a7687..9d23d5dbc 100644 --- a/components/fieldgroups/product/product-brand.schema.json +++ b/components/fieldgroups/product/product-brand.schema.json @@ -28,6 +28,63 @@ "type": "string", "format": "uri", "description": "The URL for the primary product image of the product." + }, + "xdm:productLogoURL": { + "title": "Product Logo URL", + "type": "string", + "format": "uri", + "description": "The URL for the product logo associated with the product." + }, + "xdm:productCardBackgroundColor": { + "title": "Product Card Background Color", + "type": "string", + "description": "The primary product card background color, typically in hex format." + }, + "xdm:learningResourceURL": { + "title": "Learning Resource URL", + "type": "string", + "format": "uri", + "description": "The URL for educational or training resources related to the product." + }, + "xdm:productDetails": { + "title": "Product Details", + "type": "array", + "items": { + "type": "string" + }, + "description": "Additional descriptive details about the product, such as pricing, features, or specifications." + }, + "xdm:actions": { + "title": "Product Actions", + "description": "Array of actions available for the product", + "type": "array", + "items": { + "type": "object", + "properties": { + "xdm:name": { + "title": "Action Name", + "type": "string", + "description": "Internal identifier for the action." + }, + "xdm:type": { + "title": "Action Type", + "type": "string", + "description": "Action type (e.g., 'Primary', 'Secondary')." + }, + "xdm:title": { + "title": "Action Title", + "type": "string", + "description": "Display text shown to users." + }, + "xdm:url": { + "title": "Action URL", + "type": "string", + "format": "uri", + "description": "The URL for the action." + } + }, + "required": ["xdm:name", "xdm:type", "xdm:title", "xdm:url"] + } } } }