Skip to content

Commit b51f430

Browse files
Release a new version of the jsonschema v1.40.0 (#2797)
Signed-off-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: thomaspoignant <[email protected]> Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
1 parent a874132 commit b51f430

File tree

1 file changed

+12
-167
lines changed

1 file changed

+12
-167
lines changed

.schema/flag-schema.json

+12-167
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,18 @@
33
"$defs": {
44
"DTO": {
55
"properties": {
6+
"trackEvents": {
7+
"type": "boolean"
8+
},
9+
"disable": {
10+
"type": "boolean"
11+
},
12+
"version": {
13+
"type": "string"
14+
},
15+
"converter": {
16+
"type": "string"
17+
},
618
"variations": {
719
"additionalProperties": true,
820
"type": "object",
@@ -42,30 +54,6 @@
4254
"type": "object",
4355
"title": "metadata",
4456
"description": "A field containing information about your flag such as an issue tracker link a description etc..."
45-
},
46-
"rule": {
47-
"type": "string"
48-
},
49-
"percentage": {
50-
"type": "number"
51-
},
52-
"true": true,
53-
"false": true,
54-
"default": true,
55-
"rollout": {
56-
"$ref": "#/$defs/Rollout"
57-
},
58-
"trackEvents": {
59-
"type": "boolean"
60-
},
61-
"disable": {
62-
"type": "boolean"
63-
},
64-
"version": {
65-
"type": "string"
66-
},
67-
"converter": {
68-
"type": "string"
6957
}
7058
},
7159
"additionalProperties": false,
@@ -111,32 +99,6 @@
11199
"additionalProperties": false,
112100
"type": "object"
113101
},
114-
"ProgressivePercentageV0": {
115-
"properties": {
116-
"initial": {
117-
"type": "number"
118-
},
119-
"end": {
120-
"type": "number"
121-
}
122-
},
123-
"additionalProperties": false,
124-
"type": "object"
125-
},
126-
"ProgressiveReleaseRampV0": {
127-
"properties": {
128-
"start": {
129-
"type": "string",
130-
"format": "date-time"
131-
},
132-
"end": {
133-
"type": "string",
134-
"format": "date-time"
135-
}
136-
},
137-
"additionalProperties": false,
138-
"type": "object"
139-
},
140102
"ProgressiveRollout": {
141103
"properties": {
142104
"initial": {
@@ -180,33 +142,6 @@
180142
"date"
181143
]
182144
},
183-
"ProgressiveV0": {
184-
"properties": {
185-
"percentage": {
186-
"$ref": "#/$defs/ProgressivePercentageV0"
187-
},
188-
"releaseRamp": {
189-
"$ref": "#/$defs/ProgressiveReleaseRampV0"
190-
}
191-
},
192-
"additionalProperties": false,
193-
"type": "object"
194-
},
195-
"Rollout": {
196-
"properties": {
197-
"experimentation": {
198-
"$ref": "#/$defs/ExperimentationDto"
199-
},
200-
"progressive": {
201-
"$ref": "#/$defs/ProgressiveV0"
202-
},
203-
"scheduled": {
204-
"$ref": "#/$defs/ScheduledRolloutV0"
205-
}
206-
},
207-
"additionalProperties": false,
208-
"type": "object"
209-
},
210145
"Rule": {
211146
"properties": {
212147
"name": {
@@ -246,18 +181,6 @@
246181
"additionalProperties": false,
247182
"type": "object"
248183
},
249-
"ScheduledRolloutV0": {
250-
"properties": {
251-
"steps": {
252-
"items": {
253-
"$ref": "#/$defs/ScheduledStepV0"
254-
},
255-
"type": "array"
256-
}
257-
},
258-
"additionalProperties": false,
259-
"type": "object"
260-
},
261184
"ScheduledStep": {
262185
"properties": {
263186
"variations": {
@@ -304,84 +227,6 @@
304227
},
305228
"additionalProperties": false,
306229
"type": "object"
307-
},
308-
"ScheduledStepV0": {
309-
"properties": {
310-
"variations": {
311-
"additionalProperties": true,
312-
"type": "object",
313-
"title": "variations",
314-
"description": "All the variations available for this flag. You need at least 2 variations and it is a key value pair. All the variations should have the same type."
315-
},
316-
"targeting": {
317-
"items": {
318-
"$ref": "#/$defs/Rule"
319-
},
320-
"type": "array",
321-
"title": "targeting",
322-
"description": "List of rule to target a subset of the users based on the evaluation context."
323-
},
324-
"bucketingKey": {
325-
"type": "string"
326-
},
327-
"defaultRule": {
328-
"$ref": "#/$defs/Rule",
329-
"title": "defaultRule",
330-
"description": "How do we evaluate the flag if the user is not part of any of the targeting rule."
331-
},
332-
"scheduledRollout": {
333-
"items": {
334-
"$ref": "#/$defs/ScheduledStep"
335-
},
336-
"type": "array",
337-
"title": "scheduledRollout",
338-
"description": "Configure an update on some fields of your flag over time."
339-
},
340-
"experimentation": {
341-
"$ref": "#/$defs/ExperimentationDto",
342-
"title": "experimentation",
343-
"description": "Configure an experimentation. It will allow you to configure a start date and an end date for your flag."
344-
},
345-
"metadata": {
346-
"type": "object",
347-
"title": "metadata",
348-
"description": "A field containing information about your flag such as an issue tracker link a description etc..."
349-
},
350-
"rule": {
351-
"type": "string"
352-
},
353-
"percentage": {
354-
"type": "number"
355-
},
356-
"true": true,
357-
"false": true,
358-
"default": true,
359-
"rollout": {
360-
"$ref": "#/$defs/Rollout"
361-
},
362-
"trackEvents": {
363-
"type": "boolean"
364-
},
365-
"disable": {
366-
"type": "boolean"
367-
},
368-
"version": {
369-
"type": "string"
370-
},
371-
"converter": {
372-
"type": "string"
373-
},
374-
"date": {
375-
"type": "string",
376-
"format": "date-time"
377-
}
378-
},
379-
"additionalProperties": false,
380-
"type": "object",
381-
"required": [
382-
"variations",
383-
"defaultRule"
384-
]
385230
}
386231
},
387232
"additionalProperties": {

0 commit comments

Comments
 (0)