Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Segment updated schemas #1414

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
62 changes: 62 additions & 0 deletions schemas/com.segment/alias/jsonschema/2-0-0
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
{
"$schema": "http://iglucentral.com/schemas/com.snowplowanalytics.self-desc/schema/jsonschema/1-0-0#",
"description": "Schema for Segment's Alias API call, https://segment.com/docs/integrations/webhooks/#alias",
"self": {
"vendor": "com.segment",
"name": "alias",
"format": "jsonschema",
"version": "2-0-0"
},
"type": "object",
"properties": {
"anonymousId": {
"type": "string",
"maxLength": 255
},
"channel": {
"enum": [ "server", "browser", "mobile" ]
},
"context": {
"type": "object",
"additionalProperties": true
},
"integrations": {
"type": "object",
"additionalProperties": true
},
"messageId": {
"type": "string",
"maxLength": 100
},
"previousId": {
"type": "string",
"maxLength": 100
},
"receivedAt": {
"type": "string",
"format": "date-time"
},
"sentAt": {
"type": "string",
"format": "date-time"
},
"timestamp": {
"type": "string",
"format": "date-time"
},
"type": {
"type": "string",
"maxLength": 512
},
"userId": {
"description": "Set user id, can be null",
"type": ["string","null"],
"maxLength": 255
},
"version": {
"type": ["string"],
"maxLength": 20
}
},
"additionalProperties": true
}
65 changes: 65 additions & 0 deletions schemas/com.segment/group/jsonschema/2-0-0
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
{
"$schema": "http://iglucentral.com/schemas/com.snowplowanalytics.self-desc/schema/jsonschema/1-0-0#",
"description": "Schema for Segment's Group API call, https://segment.com/docs/connections/spec/group/#example",
"self": {
"vendor": "com.segment",
"name": "group",
"format": "jsonschema",
"version": "2-0-0"
},
"type": "object",
"properties": {
"anonymousId": {
"type": "string",
"maxLength": 255
},
"channel": {
"enum": [ "server", "browser", "mobile" ]
},
"context": {
"type": "object",
"additionalProperties": true
},
"integrations": {
"type": "object",
"additionalProperties": true
},
"messageId": {
"type": "string",
"maxLength": 100
},
"receivedAt": {
"type": "string",
"format": "date-time"
},
"sentAt": {
"type": "string",
"format": "date-time"
},
"timestamp": {
"type": "string",
"format": "date-time"
},
"traits": {
"type": "object",
"additionalProperties": true
},
"type": {
"type": "string",
"maxLength": 255
},
"userId": {
"type": ["string","null"],
"maxLength": 255
},
"groupId": {
"type": ["string","null"],
"maxLength": 255
},
"version": {
"type": ["string"],
"maxLength": 20
}
},
"additionalProperties": true
}
93 changes: 93 additions & 0 deletions schemas/com.segment/identify/jsonschema/1-0-0
Original file line number Diff line number Diff line change
@@ -0,0 +1,93 @@
{
"$schema": "http://iglucentral.com/schemas/com.snowplowanalytics.self-desc/schema/jsonschema/1-0-0#",
"description": "Schema for Segment's Identify API call, https://segment.com/docs/connections/spec/identify/#example",
"self": {
"vendor": "com.segment",
"name": "identify",
"format": "jsonschema",
"version": "1-0-0"
},
"type": "object",
"properties": {
"anonymousId": {
"type": "string",
"maxLength": 255
},
"channel": {
"enum": [ "server", "browser", "mobile" ]
},
"integrations": {
"type": "object",
"additionalProperties": true
},
"messageId": {
"type": "string",
"maxLength": 100
},
"receivedAt": {
"type": "string",
"format": "date-time"
},
"sentAt": {
"type": "string",
"format": "date-time"
},
"timestamp": {
"type": "string",
"format": "date-time"
},
"traits": {
"type": "object",
"properties": {
"name": {
"type": "string",
"maxLength": 255
},
"email": {
"type": "string",
"maxLength": 512
},
"address": {
"type": "object",
"properties": {
"city": {
"type": "string",
"maxLength": 512
},
"country": {
"type": "string",
"maxLength": 512
},
"postalCode": {
"type": "string",
"maxLength": 512
},
"state": {
"type": "string",
"maxLength": 512
},
"street": {
"type": "string",
"maxLength": 512
}
},
"additionalProperties": true
}
},
"additionalProperties": true
},
"type": {
"type": "string",
"maxLength": 255
},
"userId": {
"type": ["string","null"],
"maxLength": 255
},
"version": {
"type": ["string"],
"maxLength": 20
}
},
"additionalProperties": true
}
75 changes: 75 additions & 0 deletions schemas/com.segment/page/jsonschema/2-0-0
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@
{
"$schema": "http://iglucentral.com/schemas/com.snowplowanalytics.self-desc/schema/jsonschema/1-0-0#",
"description": "Schema for Segment Page API call, https://segment.com/docs/connections/spec/page/#example",
"self": {
"vendor": "com.segment",
"name": "page",
"format": "jsonschema",
"version": "2-0-0"
},
"type": "object",
"properties": {
"anonymousId": {
"type": "string",
"maxLength": 255
},
"channel": {
"enum": [ "server", "browser", "mobile" ]
},
"context": {
"type": "object",
"additionalProperties": true
},
"integrations": {
"type": "object",
"additionalProperties": true
},
"messageId": {
"type": "string",
"maxLength": 100
},
"name": {
"type": "string",
"maxLength": 255
},
"properties": {
"type": "object",
"properties": {
"title": {
"type": "string",
"maxLength": 255
},
"url": {
"type": "string",
"maxLength": 8192
}
},
"additionalProperties": true
},
"receivedAt": {
"type": "string",
"format": "date-time"
},
"sentAt": {
"type": "string",
"format": "date-time"
},
"timestamp": {
"type": "string",
"format": "date-time"
},
"type": {
"type": "string",
"maxLength": 255
},
"userId": {
"type": ["string","null"],
"maxLength": 255
},
"version": {
"type": ["string"],
"maxLength": 20
}
},
"additionalProperties": true
}
65 changes: 65 additions & 0 deletions schemas/com.segment/screen/jsonschema/2-0-0
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
{
"$schema": "http://iglucentral.com/schemas/com.snowplowanalytics.self-desc/schema/jsonschema/1-0-0#",
"description": "Schema for Segment's Screen API call, https://segment.com/docs/connections/spec/screen/#example",
"self": {
"vendor": "com.segment",
"name": "screen",
"format": "jsonschema",
"version": "2-0-0"
},
"type": "object",
"properties": {
"anonymousId": {
"type": "string",
"maxLength": 255
},
"channel": {
"enum": [ "server", "browser", "mobile" ]
},
"context": {
"type": "object",
"additionalProperties": true
},
"integrations": {
"type": "object",
"additionalProperties": true
},
"messageId": {
"type": "string",
"maxLength": 100
},
"name": {
"type": "string",
"maxLength": 255
},
"properties": {
"type": "object",
"additionalProperties": true
},
"receivedAt": {
"type": "string",
"format": "date-time"
},
"sentAt": {
"type": "string",
"format": "date-time"
},
"timestamp": {
"type": "string",
"format": "date-time"
},
"type": {
"type": "string",
"maxLength": 255
},
"userId": {
"type": ["string","null"],
"maxLength": 255
},
"version": {
"type": ["string"],
"maxLength": 20
}
},
"additionalProperties": true
}
Loading
Loading