Skip to content

feat(jsonschema): Release a new version of the jsonschema v1.40.0 #2797

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

Merged
merged 4 commits into from
Dec 13, 2024
Merged
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
179 changes: 12 additions & 167 deletions .schema/flag-schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,18 @@
"$defs": {
"DTO": {
"properties": {
"trackEvents": {
"type": "boolean"
},
"disable": {
"type": "boolean"
},
"version": {
"type": "string"
},
"converter": {
"type": "string"
},
"variations": {
"additionalProperties": true,
"type": "object",
Expand Down Expand Up @@ -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,
Expand Down Expand Up @@ -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": {
Expand Down Expand Up @@ -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": {
Expand Down Expand Up @@ -246,18 +181,6 @@
"additionalProperties": false,
"type": "object"
},
"ScheduledRolloutV0": {
"properties": {
"steps": {
"items": {
"$ref": "#/$defs/ScheduledStepV0"
},
"type": "array"
}
},
"additionalProperties": false,
"type": "object"
},
"ScheduledStep": {
"properties": {
"variations": {
Expand Down Expand Up @@ -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": {
Expand Down
Loading