Skip to content

Commit

Permalink
Added schema Enumeration ItemCondition to Product
Browse files Browse the repository at this point in the history
  • Loading branch information
Simon committed May 15, 2024
1 parent a29669e commit 6049e5d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions scripts/generate-types.js
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down
5 changes: 5 additions & 0 deletions src/Product.src.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -55,6 +59,7 @@
"@type": "Product",
"Manufacturer": {},
"Model": "Model S",
"ItemCondition": "NewCondition",
"Owner": {
"@type": "Person",
"Name": "Mustermann",
Expand Down

0 comments on commit 6049e5d

Please sign in to comment.