summaryrefslogtreecommitdiffstats
path: root/browser/components/newtab/test/schemas/base_ping.schema.json
diff options
context:
space:
mode:
Diffstat (limited to 'browser/components/newtab/test/schemas/base_ping.schema.json')
-rw-r--r--browser/components/newtab/test/schemas/base_ping.schema.json29
1 files changed, 29 insertions, 0 deletions
diff --git a/browser/components/newtab/test/schemas/base_ping.schema.json b/browser/components/newtab/test/schemas/base_ping.schema.json
new file mode 100644
index 0000000000..bf355b0c16
--- /dev/null
+++ b/browser/components/newtab/test/schemas/base_ping.schema.json
@@ -0,0 +1,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
+}