Skip to content

Commit 003efe3

Browse files
authored
fix(transactions): Standardise tags in transactions to match events (#144)
Null is allowed as a tag entry
1 parent 36e30bd commit 003efe3

File tree

1 file changed

+33
-13
lines changed

1 file changed

+33
-13
lines changed

schemas/transactions.v1.schema.json

Lines changed: 33 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -212,6 +212,31 @@
212212
}
213213
]
214214
},
215+
"TagEntry": {
216+
"anyOf": [
217+
{
218+
"type": "array",
219+
"items": [
220+
{
221+
"type": ["string", "null"]
222+
},
223+
{
224+
"type": ["string", "null"]
225+
}
226+
],
227+
"maxItems": 2,
228+
"minItems": 2
229+
},
230+
{ "type": "null" }
231+
]
232+
},
233+
"Tags": {
234+
"description": " Manual key/value tag pairs.",
235+
"type": "array",
236+
"items": {
237+
"$ref": "#/definitions/TagEntry"
238+
}
239+
},
215240
"Data": {
216241
"type": "object",
217242
"additionalProperties": true,
@@ -247,20 +272,15 @@
247272
"$ref": "#/definitions/Contexts"
248273
},
249274
"tags": {
250-
"type": "array",
251-
"items": {
252-
"type": "array",
253-
"items": {
254-
"anyOf": [
255-
{
256-
"type": "null"
257-
},
258-
{
259-
"type": "string"
260-
}
261-
]
275+
"description": " Custom tags for this event.\n\n A map or list of tags for this event. Each tag must be less than 200 characters.",
276+
"anyOf": [
277+
{
278+
"$ref": "#/definitions/Tags"
279+
},
280+
{
281+
"type": "null"
262282
}
263-
}
283+
]
264284
},
265285
"extra": {
266286
"$ref": "#/definitions/Extra"

0 commit comments

Comments
 (0)