From 6049e5d6387ffe5f3eeed4c4b9e0706d365a3ab6 Mon Sep 17 00:00:00 2001 From: Simon Date: Wed, 15 May 2024 09:20:05 +0200 Subject: [PATCH] Added schema Enumeration ItemCondition to Product --- scripts/generate-types.js | 1 + src/Product.src.json | 5 +++++ 2 files changed, 6 insertions(+) diff --git a/scripts/generate-types.js b/scripts/generate-types.js index 5e59109..aadccc5 100644 --- a/scripts/generate-types.js +++ b/scripts/generate-types.js @@ -31,6 +31,7 @@ const PRIMITIVE_TYPE_MAPPINGS = { 'schema:PaymentMethod': 'string', 'schema:paymentStatusType': 'string', 'schema:ItemListOrderType': 'string', + 'schema:OfferItemCondition': 'string', 'schema:BusinessFunction': 'string', 'schema:DeliveryMethod': 'string', 'oo:definitions/string': 'string', diff --git a/src/Product.src.json b/src/Product.src.json index 9ad6e93..e110746 100644 --- a/src/Product.src.json +++ b/src/Product.src.json @@ -24,6 +24,10 @@ "s4i": "http://schema4i.org/", "schema": "http://schema.org/", "Product": "schema:Product", + "ItemCondition": { + "@id": "schema:itemCondition", + "@type": "schema:OfferItemCondition" + }, "Manufacturer": { "@id": "schema:manufacturer", "@type": "s4i:Organization" @@ -55,6 +59,7 @@ "@type": "Product", "Manufacturer": {}, "Model": "Model S", + "ItemCondition": "NewCondition", "Owner": { "@type": "Person", "Name": "Mustermann",