Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add com.growthbook/experiment_viewed/jsonschema/1-0-0 #1423

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
52 changes: 52 additions & 0 deletions schemas/io.growthbook/experiment_viewed/jsonschema/1-0-0
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
{
"$schema": "http://iglucentral.com/schemas/com.snowplowanalytics.self-desc/schema/jsonschema/1-0-0#",
"description": "Schema for a GrowthBook experiment viewed event. See https://docs.growthbook.io/",
"self": {
"vendor": "io.growthbook",
"name": "experiment_viewed",
"format": "jsonschema",
"version": "1-0-0"
},
"type": "object",
"properties": {
"experimentId": {
"type": "string",
"maxLength": 160,
"description": "The experiment tracking key or experiment id that uniquely identifies this experiment"
},
"variationId": {
"type": "string",
"maxLength": 100,
"description": "The experiment variation id that the user was exposed to"
},
"hashAttribute": {
"type": [
"null",
"string"
],
"maxLength": 100
"description": "The attribute that was used to assign the experiment variant"
},
"hashValue": {
"type": "string",
"maxLength": 160,
"description": "The value of the hash attribute that was used for assignment"
},
"custom": {
"type": "array",
"description": "Other parameters that you might want to record about the user or exposure. Useful for dimensional analysis or debugging."
"items": {
"type": "object",
"properties": {
"key": {
"type": "string"
},
"value": {
"type": ["string", "null"]
}
}
}
}
},
"required": ["experimentId", "variationId"]
}