From 0cb73c3fafafcdbb920ad00e052442e6999e1cac Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=9Cnishant-sharma=E2=80=9D?= Date: Tue, 27 Apr 2021 22:48:20 +0530 Subject: [PATCH] json schema --- schema/schema.json | 70 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 70 insertions(+) create mode 100644 schema/schema.json diff --git a/schema/schema.json b/schema/schema.json new file mode 100644 index 0000000..144e56c --- /dev/null +++ b/schema/schema.json @@ -0,0 +1,70 @@ +{ + "type": "object", + "properties": { + "app": { + "type": "object", + "properties": { + "name": {"type": "string"}, + "version": {"type": "string"} + } + }, + "device": { + "type": "object", + "properties": { + "device_id": {"type": "string"}, + "advertising_id": {"type": "string"}, + "installation_id": {"type": "string"}, + "category": {"type": "string"}, + "height": {"type": "string"}, + "imei": {"type": "string"}, + "manufacturer": {"type": "string"}, + "model": {"type": "string"}, + "screen_resolution": {"type": "string"}, + "os": {"type": "string"}, + "os_version": {"type": "string"}, + "os_api_level": {"type": "string"}, + "rooted": {"type": "string"}, + "fingerprint": {"type": "string"} + } + }, + "network": { + "type": "object", + "properties": { + "carrier": {"type": "string"}, + "type": {"type": "string"}, + "ip": {"type": "string"} + } + }, + "location": { + "type": "object", + "properties": { + "latitude": {"type": "string"}, + "longitude": {"type": "string"} + } + }, + "referer": { + "type": "object", + "properties": { + "url": {"type": "string"} + } + }, + "user": { + "type": "object", + "properties": { + "customer_id": {"type": "string"} + } + }, + "events": { + "type": "array", + "items": { + "type": "object", + "properties": { + "event_type": {"type": "string"}, + "timestamp": {"type": "number"} + } + } + } + } + }, + "additionalProperties": false +} \ No newline at end of file