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