From ea236666c0a8153176ca32933bb481e816fc94d0 Mon Sep 17 00:00:00 2001
From: Peter Perlepes
Date: Fri, 12 Jul 2024 10:17:59 +0300
Subject: [PATCH] Add
com.snowplowanalytics.snowplow/custom_event/jsonschema/1-0-0 (close #1407)
---
.../custom_event/jsonschema/1-0-0 | 35 +++++++++++++++++++
1 file changed, 35 insertions(+)
create mode 100644 schemas/com.snowplowanalytics.snowplow/custom_event/jsonschema/1-0-0
diff --git a/schemas/com.snowplowanalytics.snowplow/custom_event/jsonschema/1-0-0 b/schemas/com.snowplowanalytics.snowplow/custom_event/jsonschema/1-0-0
new file mode 100644
index 00000000..54d1261b
--- /dev/null
+++ b/schemas/com.snowplowanalytics.snowplow/custom_event/jsonschema/1-0-0
@@ -0,0 +1,35 @@
+{
+ "$schema": "http://iglucentral.com/schemas/com.snowplowanalytics.self-desc/schema/jsonschema/1-0-0#",
+ "description": "Schema for a custom event with generic properties",
+ "self": {
+ "vendor": "com.snowplowanalytics.snowplow",
+ "name": "custom_event",
+ "format": "jsonschema",
+ "version": "1-0-0"
+ },
+ "type": "object",
+ "properties": {
+ "category": {
+ "type": ["string", "null"],
+ "maxLength": 1024,
+ "description": "Category of the event"
+ },
+ "action": {
+ "type": ["string", "null"],
+ "maxLength": 1024,
+ "description": "Action taken on the event"
+ },
+ "label": {
+ "type": ["string", "null"],
+ "maxLength": 1024,
+ "description": "Label describing the event"
+ },
+ "value": {
+ "type": ["number", "null"],
+ "description": "Value assigned to the event",
+ "minimum": 0,
+ "maximum": 9999999
+ }
+ },
+ "additionalProperties": false
+}