Skip to content

Commit

Permalink
chore: format mixpanel schema.json (#1076)
Browse files Browse the repository at this point in the history
  • Loading branch information
Gauravudia authored Nov 14, 2023
1 parent 2927f61 commit 263f31e
Showing 1 changed file with 78 additions and 18 deletions.
96 changes: 78 additions & 18 deletions src/configurations/destinations/mp/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,20 +12,46 @@
"type": "string",
"pattern": "(^\\{\\{.*\\|\\|(.*)\\}\\}$)|(^env[.].+)|^(.{0,100})$"
},
"serviceAccountUserName": { "type": "string" },
"serviceAccountSecret": { "type": "string" },
"projectId": { "type": "string" },
"dataResidency": { "type": "string", "enum": ["us", "eu"], "default": "us" },
"serviceAccountUserName": {
"type": "string"
},
"serviceAccountSecret": {
"type": "string"
},
"dataResidency": {
"type": "string",
"enum": ["us", "eu"],
"default": "us"
},
"projectId": {
"type": "string"
},
"identityMergeApi": {
"type": "string",
"enum": ["simplified", "original"],
"default": "original"
},
"userDeletionApi": { "type": "string", "enum": ["engage", "task"], "default": "engage" },
"strictMode": { "type": "boolean", "default": false },
"ignoreDnt": { "type": "boolean", "default": false },
"people": { "type": "boolean", "default": false },
"setAllTraitsByDefault": { "type": "boolean", "default": false },
"userDeletionApi": {
"type": "string",
"enum": ["engage", "task"],
"default": "engage"
},
"strictMode": {
"type": "boolean",
"default": false
},
"ignoreDnt": {
"type": "boolean",
"default": false
},
"people": {
"type": "boolean",
"default": false
},
"setAllTraitsByDefault": {
"type": "boolean",
"default": false
},
"superProperties": {
"type": "array",
"items": {
Expand Down Expand Up @@ -74,14 +100,26 @@
}
}
},
"consolidatedPageCalls": { "type": "boolean", "default": true },
"trackCategorizedPages": { "type": "boolean", "default": false },
"trackNamedPages": { "type": "boolean", "default": false },
"consolidatedPageCalls": {
"type": "boolean",
"default": true
},
"trackCategorizedPages": {
"type": "boolean",
"default": false
},
"trackNamedPages": {
"type": "boolean",
"default": false
},
"sourceName": {
"type": "string",
"pattern": "(^\\{\\{.*\\|\\|(.*)\\}\\}$)|(^env[.].+)|^(.{0,100})$"
},
"crossSubdomainCookie": { "type": "boolean", "default": false },
"crossSubdomainCookie": {
"type": "boolean",
"default": false
},
"persistenceType": {
"type": "string",
"enum": ["none", "cookie", "localStorage"],
Expand All @@ -91,7 +129,10 @@
"type": "string",
"pattern": "(^\\{\\{.*\\|\\|(.*)\\}\\}$)|(^env[.].+)|^(.{0,100})$"
},
"secureCookie": { "type": "boolean", "default": false },
"secureCookie": {
"type": "boolean",
"default": false
},
"groupKeySettings": {
"type": "array",
"items": {
Expand All @@ -104,8 +145,18 @@
}
}
},
"useNativeSDK": { "type": "object", "properties": { "web": { "type": "boolean" } } },
"useNewMapping": { "type": "boolean", "default": false },
"useNativeSDK": {
"type": "object",
"properties": {
"web": {
"type": "boolean"
}
}
},
"useNewMapping": {
"type": "boolean",
"default": false
},
"eventFilteringOption": {
"type": "string",
"enum": ["disable", "whitelistedEvents", "blacklistedEvents"],
Expand Down Expand Up @@ -151,14 +202,23 @@
"type": "array",
"items": {
"type": "object",
"properties": { "purpose": { "type": "string", "pattern": "^(.{0,100})$" } }
"properties": {
"purpose": {
"type": "string",
"pattern": "^(.{0,100})$"
}
}
}
}
},
"anyOf": [
{
"if": {
"properties": { "userDeletionApi": { "const": "task" } },
"properties": {
"userDeletionApi": {
"const": "task"
}
},
"required": ["userDeletionApi"]
},
"then": {
Expand Down

0 comments on commit 263f31e

Please sign in to comment.