-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsplit-feature-flag-schema.json
More file actions
62 lines (62 loc) · 1.83 KB
/
Copy pathsplit-feature-flag-schema.json
File metadata and controls
62 lines (62 loc) · 1.83 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://split.io/schemas/split/feature-flag.json",
"title": "Split Feature Flag",
"description": "A feature flag (split) in the Split platform, representing a toggle used to control feature rollouts, targeting rules, and experimentation treatments.",
"type": "object",
"required": ["name", "trafficType"],
"properties": {
"name": {
"type": "string",
"description": "Unique name of the feature flag within a workspace",
"pattern": "^[a-zA-Z0-9_-]+$",
"maxLength": 256
},
"description": {
"type": "string",
"description": "Human-readable description of the feature flag's purpose"
},
"trafficType": {
"$ref": "#/$defs/TrafficType"
},
"creationTime": {
"type": "integer",
"description": "Unix timestamp in milliseconds of when the feature flag was created"
},
"tags": {
"type": "array",
"description": "Tags associated with the feature flag for organization and filtering",
"items": {
"$ref": "#/$defs/Tag"
}
}
},
"$defs": {
"TrafficType": {
"type": "object",
"description": "A traffic type defining the kind of entity that feature flags target",
"required": ["id", "name"],
"properties": {
"id": {
"type": "string",
"description": "Unique identifier for the traffic type"
},
"name": {
"type": "string",
"description": "Name of the traffic type (e.g., user, account)"
}
}
},
"Tag": {
"type": "object",
"description": "A tag used to categorize and filter feature flags",
"required": ["name"],
"properties": {
"name": {
"type": "string",
"description": "Name of the tag"
}
}
}
}
}