Skip to content

Commit

Permalink
Add com.mandrill/recipient_unsubscribed/jsonschema/1-0-1 (closes #752)
Browse files Browse the repository at this point in the history
  • Loading branch information
BenFradet committed Apr 6, 2018
1 parent f112b9f commit 0013046
Show file tree
Hide file tree
Showing 3 changed files with 100 additions and 1 deletion.
3 changes: 2 additions & 1 deletion jsonpaths/com.mandrill/recipient_unsubscribed_1.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
"$.data.msg.state",
"$.data.msg.subject",
"$.data.msg.tags",
"$.data.msg.ts"
"$.data.msg.ts",
"$.data.msg.subaccount"
]
}
97 changes: 97 additions & 0 deletions schemas/com.mandrill/recipient_unsubscribed/jsonschema/1-0-1
Original file line number Diff line number Diff line change
@@ -0,0 +1,97 @@
{
"$schema": "http://iglucentral.com/schemas/com.snowplowanalytics.self-desc/schema/jsonschema/1-0-0#",
"description": "Schema for a Mandrill recipient unsubscribed event",
"self": {
"vendor": "com.mandrill",
"name": "recipient_unsubscribed",
"format": "jsonschema",
"version": "1-0-1"
},

"type": "object",
"properties": {
"_id": {
"type": "string"
},
"msg": {
"type": "object",
"properties": {
"_id": {
"type": "string"
},
"_version": {
"type": "string"
},
"clicks": {
"type": "array",
"items": {
"type": "object",
"properties": {
"ts": {
"type": "string",
"format": "date-time"
},
"url": {
"type": "string"
}
},
"additionalProperties": true
}
},
"email": {
"type": "string"
},
"metadata": {
"type": "object",
"properties": {
"user_id": {
"type": "number"
}
},
"additionalProperties": false
},
"opens": {
"type": "array",
"items": {
"type": "object",
"properties": {
"ts": {
"type": "string",
"format": "date-time"
}
},
"additionalProperties": true
}
},
"sender": {
"type": "string"
},
"state": {
"type": "string"
},
"subaccount": {
"type": ["string", "null"]
},
"subject": {
"type": "string"
},
"tags": {
"type": "array",
"items": {
"type": "string"
}
},
"ts": {
"type": "string",
"format": "date-time"
}
},
"additionalProperties": false
},
"ts": {
"type": "string",
"format": "date-time"
}
},
"additionalProperties": false
}
1 change: 1 addition & 0 deletions sql/com.mandrill/recipient_unsubscribed_1.sql
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ CREATE TABLE atomic.com_mandrill_recipient_unsubscribed_1 (
"msg.subject" varchar(255) encode raw,
"msg.tags" varchar(2048) encode runlength, -- Holds a JSON array
"msg.ts" timestamp encode raw,
"msg.subaccount" varchar(255) encode raw,
FOREIGN KEY(root_id) REFERENCES atomic.events(event_id)
)
DISTSTYLE KEY
Expand Down

0 comments on commit 0013046

Please sign in to comment.