diff --git a/jsonpaths/com.growthbook/experiment_viewed_1.json b/jsonpaths/com.growthbook/experiment_viewed_1.json new file mode 100644 index 000000000..a19993908 --- /dev/null +++ b/jsonpaths/com.growthbook/experiment_viewed_1.json @@ -0,0 +1,18 @@ +{ + "jsonpaths": [ + "$.schema.vendor", + "$.schema.name", + "$.schema.format", + "$.schema.version", + "$.hierarchy.rootId", + "$.hierarchy.rootTstamp", + "$.hierarchy.refRoot", + "$.hierarchy.refTree", + "$.hierarchy.refParent", + "$.data.experimentId", + "$.data.variationId", + "$.data.hashAttribute", + "$.data.hashValue", + "$.data.custom" + ] +} diff --git a/schemas/com.growthbook/experiment_viewed/jsonschema/1-0-0 b/schemas/com.growthbook/experiment_viewed/jsonschema/1-0-0 new file mode 100644 index 000000000..555aa96ea --- /dev/null +++ b/schemas/com.growthbook/experiment_viewed/jsonschema/1-0-0 @@ -0,0 +1,44 @@ +{ + "$schema": "http://iglucentral.com/schemas/com.snowplowanalytics.self-desc/schema/jsonschema/1-0-0#", + "description": "Schema for an GrowthBook experiment viewed event", + "self": { + "vendor": "com.growthbook", + "name": "experiment_viewed", + "format": "jsonschema", + "version": "1-0-0" + }, + "type": "object", + "properties": { + "experimentId": { + "type": "string", + "maxLength": 160 + }, + "variationId": { + "type": "string", + "maxLength": 100 + }, + "hashAttribute": { + "type": "string", + "maxLength": 100 + }, + "hashValue": { + "type": "string", + "maxLength": 160 + }, + "custom": { + "type": "array", + "items": { + "type": "object", + "properties": { + "key": { + "type": "string" + }, + "value": { + "type": ["string", "null"] + } + } + } + } + }, + "required": ["experimentId", "variationId"] +}