Skip to content

Commit

Permalink
Added add_to_cart and remove_from_cart schemas (closes #28 and closes #…
Browse files Browse the repository at this point in the history
  • Loading branch information
fblundun committed Oct 7, 2014
1 parent eb13a7f commit a0e34eb
Show file tree
Hide file tree
Showing 2 changed files with 68 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
{
"$schema": "http://iglucentral.com/schemas/com.snowplowanalytics.self-desc/schema/jsonschema/1-0-0#",
"description": "Schema for an add-to-cart event",
"self": {
"vendor": "com.snowplowanalytics.snowplow",
"name": "add_to_cart",
"format": "jsonschema",
"version": "1-0-0"
},

"type": "object",
"properties": {
"sku": {
"type": "string"
},
"name": {
"type": "string"
},
"category" {
"type": "string"
},
"price": {
"type": "number"
},
"quantity": {
"type": "number"
},
"currency": {
"type": "string"
}
},
"required": ["sku", "price", "quantity"],
"additionalProperties": false
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
{
"$schema": "http://iglucentral.com/schemas/com.snowplowanalytics.self-desc/schema/jsonschema/1-0-0#",
"description": "Schema for a remove-from-cart event",
"self": {
"vendor": "com.snowplowanalytics.snowplow",
"name": "remove_from_cart",
"format": "jsonschema",
"version": "1-0-0"
},

"type": "object",
"properties": {
"sku": {
"type": "string"
},
"name": {
"type": "string"
},
"category" {
"type": "string"
},
"price": {
"type": "number"
},
"quantity": {
"type": "number"
},
"currency": {
"type": "string"
}
},
"required": ["sku", "price", "quantity"],
"additionalProperties": false
}

0 comments on commit a0e34eb

Please sign in to comment.