-
Notifications
You must be signed in to change notification settings - Fork 1
/
schema.json
147 lines (147 loc) · 4.04 KB
/
schema.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
{
"$schema": "http://json-schema.org/draft-07/schema",
"title": "@flisk/analyze-tracking output schema",
"type": "object",
"properties": {
"version": {
"type": "number",
"enum": [
1
],
"description": "Version of the schema"
},
"source": {
"type": "object",
"properties": {
"repository": {
"type": "string",
"description": "URL of git repository that was used to generate the schema"
},
"commit": {
"type": "string",
"description": "Git commit hash when this schema was generated"
},
"timestamp": {
"type": "string",
"description": "Git commit timestamp when this schema was generated"
}
},
"required": [
"timestamp"
],
"additionalProperties": false
},
"events": {
"type": "object",
"patternProperties": {
"^[a-zA-Z0-9_-]+$": {
"type": "object",
"properties": {
"implementations": {
"type": "array",
"items": {
"type": "object",
"properties": {
"path": {
"type": "string",
"description": "Relative path to the file where the event is tracked"
},
"line": {
"type": "integer",
"description": "Line number in the file where the event is tracked"
},
"function": {
"type": "string",
"description": "Name of the function where the event is tracked"
},
"destination": {
"type": "string",
"enum": [
"googleanalytics",
"segment",
"mixpanel",
"amplitude",
"rudderstack",
"mparticle",
"posthog",
"pendo",
"heap",
"snowplow",
"custom",
"unknown"
],
"description": "Name of the platform where the event is sent"
},
"description": {
"type": "string",
"description": "Description of how the event is triggered"
}
},
"required": [
"path",
"line",
"function",
"destination"
],
"additionalProperties": false
}
},
"properties": {
"type": "object",
"patternProperties": {
"^[a-zA-Z0-9_-]+$": {
"$ref": "#/definitions/property"
}
}
},
"description": {
"type": "string",
"description": "Description of the event"
}
},
"required": [
"implementations",
"properties"
],
"additionalProperties": false
}
}
}
},
"required": [
"version",
"source",
"events"
],
"definitions": {
"property": {
"type": "object",
"properties": {
"type": {
"type": "string",
"description": "Data type of the property (e.g., string, number, any)"
},
"required": {
"type": "boolean",
"description": "Whether this property is required"
},
"description": {
"type": "string",
"description": "Description of the property"
},
"properties": {
"type": "object",
"patternProperties": {
"^[a-zA-Z0-9_-]+$": {
"$ref": "#/definitions/property"
}
}
}
},
"required": [
"type"
],
"additionalProperties": false
}
}
}