|
3 | 3 | "$defs": {
|
4 | 4 | "DTO": {
|
5 | 5 | "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 | + }, |
6 | 18 | "variations": {
|
7 | 19 | "additionalProperties": true,
|
8 | 20 | "type": "object",
|
|
42 | 54 | "type": "object",
|
43 | 55 | "title": "metadata",
|
44 | 56 | "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" |
69 | 57 | }
|
70 | 58 | },
|
71 | 59 | "additionalProperties": false,
|
|
111 | 99 | "additionalProperties": false,
|
112 | 100 | "type": "object"
|
113 | 101 | },
|
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 |
| - }, |
140 | 102 | "ProgressiveRollout": {
|
141 | 103 | "properties": {
|
142 | 104 | "initial": {
|
|
180 | 142 | "date"
|
181 | 143 | ]
|
182 | 144 | },
|
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 |
| - }, |
210 | 145 | "Rule": {
|
211 | 146 | "properties": {
|
212 | 147 | "name": {
|
|
246 | 181 | "additionalProperties": false,
|
247 | 182 | "type": "object"
|
248 | 183 | },
|
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 |
| - }, |
261 | 184 | "ScheduledStep": {
|
262 | 185 | "properties": {
|
263 | 186 | "variations": {
|
|
304 | 227 | },
|
305 | 228 | "additionalProperties": false,
|
306 | 229 | "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 |
| - ] |
385 | 230 | }
|
386 | 231 | },
|
387 | 232 | "additionalProperties": {
|
|
0 commit comments