summaryrefslogtreecommitdiffstats
path: root/browser/components/newtab/test/schemas/base_ping.schema.json
blob: bf355b0c163ce58e1b6fc624139e3646b7689c89 (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
{
  "$schema": "http://json-schema.org/draft-07/schema#",
  "$id": "browser/components/newtab/test/schemas/base_ping.schema.json",
  "title": "Base PingCentre ping",
  "type": "object",
  "properties": {
    "client_id": {
      "type": "string"
    },
    "addon_version": {
      "type": "string"
    },
    "locale": {
      "type": "string"
    },
    "session_id": {
      "type": "string"
    },
    "page": {
      "type": ["array", "boolean", "number", "object", "string", "null"],
      "enum": ["about:home", "about:newtab", "about:welcome", "both", "unknown"]
    },
    "user_prefs": {
      "type": "integer"
    }
  },
  "required": ["addon_version", "locale", "user_prefs"],
  "additionalProperties": true
}