diff --git a/schemas/io.snowplow.ecomm/add_payment_method/jsonschema/1-0-0 b/schemas/io.snowplow.ecomm/add_payment_method/jsonschema/1-0-0 index be920fc3..c9776668 100644 --- a/schemas/io.snowplow.ecomm/add_payment_method/jsonschema/1-0-0 +++ b/schemas/io.snowplow.ecomm/add_payment_method/jsonschema/1-0-0 @@ -3,6 +3,7 @@ "properties": { "payment_id": { "type": "string", + "description": "The `payment` entity ID for which this event is attached with.", "maxLength": 255 }, "new_payment": { diff --git a/schemas/io.snowplow.ecomm/cancel_subscription/jsonschema/1-0-0 b/schemas/io.snowplow.ecomm/cancel_subscription/jsonschema/1-0-0 index eacdae26..90b8a7d3 100644 --- a/schemas/io.snowplow.ecomm/cancel_subscription/jsonschema/1-0-0 +++ b/schemas/io.snowplow.ecomm/cancel_subscription/jsonschema/1-0-0 @@ -1,5 +1,5 @@ { - "description": "Event occurs when a customer cancels for a subscription", + "description": "Event occurs when a customer cancels a subscription", "properties": { "subscription_id": { "type": "string", @@ -10,7 +10,7 @@ "string", "null" ], - "description": "The reason if given in notes for why the subscription was cancelled.", + "description": "Reason why the subscription was cancelled.", "maxLength": 512 } }, diff --git a/schemas/io.snowplow.ecomm/cart/jsonschema/1-0-0 b/schemas/io.snowplow.ecomm/cart/jsonschema/1-0-0 index caf0c7f9..0e422893 100644 --- a/schemas/io.snowplow.ecomm/cart/jsonschema/1-0-0 +++ b/schemas/io.snowplow.ecomm/cart/jsonschema/1-0-0 @@ -1,5 +1,76 @@ { "description": "The cart entity contains the products and bundles that have been added to cart, as well as information about discounts and total costs", + "definitions": { + "discovery": { + "type": "object", + "properties": { + "discovery_type": { + "type": "string", + "description": "The type of discovery.", + "maxLength": 255 + }, + "discovery_id": { + "type": "string", + "description": "The identifier for the specific discovery. As an example if from a search then a `search_id` will be used.", + "maxLength": 255 + }, + "discovery_index": { + "type": [ + "integer", + "null" + ], + "description": "Any index associated with the discovery, as an example, if the discovery was from a search then the search_index will be used.", + "minimum": 0, + "maximum": 2147483647 + } + }, + "additionalProperties": false, + "required": [ + "discovery_type", + "discovery_id" + ] + }, + "items_in_cart": { + "type": "object", + "properties": { + "item_type": { + "type": [ + "string", + "null" + ], + "description": "Examples: \"product\", \"bundle\".", + "maxLength": 255 + }, + "quantity": { + "type": "number", + "description": "The number of items of this item ID.", + "minimum": 0, + "maximum": 9999999 + }, + "item_id": { + "type": "string", + "description": "The item's ID.", + "maxLength": 255 + }, + "discovery": { + "type": [ + "array", + "null" + ], + "description": "An array of objects which indicates how the user had interacted with the item.", + "items": { + "$ref": "#/definitions/discovery" + } + } + }, + "additionalProperties": false, + "required": [ + "quantity", + "item_id" + ] + } + }, + "properties": { "cart_id": { "type": "string", @@ -83,69 +154,7 @@ ], "description": "The list of items in the cart.", "items": { - "type": "object", - "properties": { - "item_type": { - "type": [ - "string", - "null" - ], - "description": "Examples: \"product\", \"bundle\".", - "maxLength": 255 - }, - "quantity": { - "type": "number", - "description": "The number of items of this item ID.", - "minimum": 0, - "maximum": 9999999 - }, - "item_id": { - "type": "string", - "description": "The item's ID.", - "maxLength": 255 - }, - "discovery": { - "type": [ - "array", - "null" - ], - "description": "An array of objects which indicates how the user had interacted with the item.", - "items": { - "type": "object", - "properties": { - "discovery_type": { - "type": "string", - "description": "The type of discovery.", - "maxLength": 255 - }, - "discovery_id": { - "type": "string", - "description": "The identifier for the specific discovery. As an example if from a search then a `search_id` will be used.", - "maxLength": 255 - }, - "discovery_index": { - "type": [ - "integer", - "null" - ], - "description": "Any index associated with the discovery, as an example, if the discovery was from a search then the search_index will be used.", - "minimum": 0, - "maximum": 2147483647 - } - }, - "additionalProperties": false, - "required": [ - "discovery_type", - "discovery_id" - ] - } - } - }, - "additionalProperties": false, - "required": [ - "quantity", - "item_id" - ] + "$ref": "#/definitions/items_in_cart" } } }, diff --git a/schemas/io.snowplow.ecomm/click_item/jsonschema/1-0-0 b/schemas/io.snowplow.ecomm/click_item/jsonschema/1-0-0 index ad034140..a215220b 100644 --- a/schemas/io.snowplow.ecomm/click_item/jsonschema/1-0-0 +++ b/schemas/io.snowplow.ecomm/click_item/jsonschema/1-0-0 @@ -12,12 +12,17 @@ "description": "The general type of the item, currently supports the two types of a singular product and a bundle of products.", "maxLength": 255 }, - "click_position": { + "collection_id": { + "type": "string", + "description": "The ID of the collection entity from which the item that was clicked is located in.", + "maxLength": 255 + }, + "position": { "type": [ "integer", "null" ], - "description": "The numerical position of the item on the page, if the item appears first, click_position would be 1", + "description": "The numerical position of the item on the page, if the item appears first, position would be 1", "minimum": 1, "maximum": 2147483647 } diff --git a/schemas/io.snowplow.ecomm/collection/jsonschema/1-0-0 b/schemas/io.snowplow.ecomm/collection/jsonschema/1-0-0 index 3ce86e83..2ecbb608 100644 --- a/schemas/io.snowplow.ecomm/collection/jsonschema/1-0-0 +++ b/schemas/io.snowplow.ecomm/collection/jsonschema/1-0-0 @@ -70,7 +70,7 @@ "integer", "null" ], - "description": "The total number items to be displayed on each page.", + "description": "The total number of items to be displayed on each page.", "minimum": 1, "maximum": 2147483647 },