diff --git a/.schema/flag-schema.json b/.schema/flag-schema.json index a52e844fac8..e2a68b4e170 100644 --- a/.schema/flag-schema.json +++ b/.schema/flag-schema.json @@ -3,6 +3,18 @@ "$defs": { "DTO": { "properties": { + "trackEvents": { + "type": "boolean" + }, + "disable": { + "type": "boolean" + }, + "version": { + "type": "string" + }, + "converter": { + "type": "string" + }, "variations": { "additionalProperties": true, "type": "object", @@ -42,30 +54,6 @@ "type": "object", "title": "metadata", "description": "A field containing information about your flag such as an issue tracker link a description etc..." - }, - "rule": { - "type": "string" - }, - "percentage": { - "type": "number" - }, - "true": true, - "false": true, - "default": true, - "rollout": { - "$ref": "#/$defs/Rollout" - }, - "trackEvents": { - "type": "boolean" - }, - "disable": { - "type": "boolean" - }, - "version": { - "type": "string" - }, - "converter": { - "type": "string" } }, "additionalProperties": false, @@ -111,32 +99,6 @@ "additionalProperties": false, "type": "object" }, - "ProgressivePercentageV0": { - "properties": { - "initial": { - "type": "number" - }, - "end": { - "type": "number" - } - }, - "additionalProperties": false, - "type": "object" - }, - "ProgressiveReleaseRampV0": { - "properties": { - "start": { - "type": "string", - "format": "date-time" - }, - "end": { - "type": "string", - "format": "date-time" - } - }, - "additionalProperties": false, - "type": "object" - }, "ProgressiveRollout": { "properties": { "initial": { @@ -180,33 +142,6 @@ "date" ] }, - "ProgressiveV0": { - "properties": { - "percentage": { - "$ref": "#/$defs/ProgressivePercentageV0" - }, - "releaseRamp": { - "$ref": "#/$defs/ProgressiveReleaseRampV0" - } - }, - "additionalProperties": false, - "type": "object" - }, - "Rollout": { - "properties": { - "experimentation": { - "$ref": "#/$defs/ExperimentationDto" - }, - "progressive": { - "$ref": "#/$defs/ProgressiveV0" - }, - "scheduled": { - "$ref": "#/$defs/ScheduledRolloutV0" - } - }, - "additionalProperties": false, - "type": "object" - }, "Rule": { "properties": { "name": { @@ -246,18 +181,6 @@ "additionalProperties": false, "type": "object" }, - "ScheduledRolloutV0": { - "properties": { - "steps": { - "items": { - "$ref": "#/$defs/ScheduledStepV0" - }, - "type": "array" - } - }, - "additionalProperties": false, - "type": "object" - }, "ScheduledStep": { "properties": { "variations": { @@ -304,84 +227,6 @@ }, "additionalProperties": false, "type": "object" - }, - "ScheduledStepV0": { - "properties": { - "variations": { - "additionalProperties": true, - "type": "object", - "title": "variations", - "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." - }, - "targeting": { - "items": { - "$ref": "#/$defs/Rule" - }, - "type": "array", - "title": "targeting", - "description": "List of rule to target a subset of the users based on the evaluation context." - }, - "bucketingKey": { - "type": "string" - }, - "defaultRule": { - "$ref": "#/$defs/Rule", - "title": "defaultRule", - "description": "How do we evaluate the flag if the user is not part of any of the targeting rule." - }, - "scheduledRollout": { - "items": { - "$ref": "#/$defs/ScheduledStep" - }, - "type": "array", - "title": "scheduledRollout", - "description": "Configure an update on some fields of your flag over time." - }, - "experimentation": { - "$ref": "#/$defs/ExperimentationDto", - "title": "experimentation", - "description": "Configure an experimentation. It will allow you to configure a start date and an end date for your flag." - }, - "metadata": { - "type": "object", - "title": "metadata", - "description": "A field containing information about your flag such as an issue tracker link a description etc..." - }, - "rule": { - "type": "string" - }, - "percentage": { - "type": "number" - }, - "true": true, - "false": true, - "default": true, - "rollout": { - "$ref": "#/$defs/Rollout" - }, - "trackEvents": { - "type": "boolean" - }, - "disable": { - "type": "boolean" - }, - "version": { - "type": "string" - }, - "converter": { - "type": "string" - }, - "date": { - "type": "string", - "format": "date-time" - } - }, - "additionalProperties": false, - "type": "object", - "required": [ - "variations", - "defaultRule" - ] } }, "additionalProperties": {