summaryrefslogtreecommitdiffstats
path: root/browser/components/newtab/test/schemas/asrouter_event_ping.schema.json
blob: 6ad4f865414f72f23fb392837a8e73480a03676c (plain)
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
{
  "$schema": "http://json-schema.org/draft-07/schema#",
  "$id": "browser/components/newtab/test/schemas/asrouter_event_ping.schema.json",
  "title": "ASRouter event PingCentre ping",
  "type": "object",
  "properties": {
    "addon_version": {
      "type": "string"
    },
    "locale": {
      "type": "string"
    },
    "message_id": {
      "type": "string"
    },
    "event": {
      "type": "string"
    },
    "client_id": {
      "type": "string"
    },
    "impression_id": {
      "type": "string"
    }
  },
  "required": ["addon_version", "locale", "message_id", "event"],
  "additionalProperties": false,
  "anyOf": [
    {
      "required": ["client_id"]
    },
    {
      "required": ["impression_id"]
    }
  ]
}