Skip to content
This repository was archived by the owner on Dec 17, 2025. It is now read-only.

Commit b2f4cd2

Browse files
committed
feat(SCHEMA): accept null for object type properties
1 parent 9ef82f3 commit b2f4cd2

1 file changed

Lines changed: 7 additions & 7 deletions

File tree

schemas/event.schema.json

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@
6666
}
6767
},
6868
"clid": {
69-
"type": "object",
69+
"type": ["object", "null"],
7070
"properties": {
7171
"fbclid": {
7272
"type": ["string", "number", "null"]
@@ -95,7 +95,7 @@
9595
}
9696
},
9797
"cookies": {
98-
"type": "object",
98+
"type": ["object", "null"],
9999
"properties": {
100100
"_fbp": {
101101
"type": ["string", "number", "null"]
@@ -118,7 +118,7 @@
118118
}
119119
},
120120
"context": {
121-
"type": "object",
121+
"type": ["object", "null"],
122122
"properties": {
123123
"page": {
124124
"type": "object",
@@ -152,7 +152,7 @@
152152
}
153153
},
154154
"location": {
155-
"type": "object",
155+
"type": ["object", "null"],
156156
"properties": {
157157
"countryCode:": {
158158
"type": "string"
@@ -172,7 +172,7 @@
172172
}
173173
},
174174
"customerData": {
175-
"type": "object",
175+
"type": ["object", "null"],
176176
"properties": {
177177
"email": {
178178
"type": "string"
@@ -195,7 +195,7 @@
195195
}
196196
},
197197
"shopping_data": {
198-
"type": "object",
198+
"type": ["object", "null"],
199199
"properties": {
200200
"currency": {
201201
"type": "string"
@@ -207,7 +207,7 @@
207207
"type": "object"
208208
},
209209
"products": {
210-
"type": "array",
210+
"type": ["array", "null"],
211211
"items": [
212212
{
213213
"type": "object",

0 commit comments

Comments
 (0)