summaryrefslogtreecommitdiffstats
path: root/toolkit/components/nimbus/schemas/ExperimentFeatureRemote.schema.json
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-07 17:32:43 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-07 17:32:43 +0000
commit6bf0a5cb5034a7e684dcc3500e841785237ce2dd (patch)
treea68f146d7fa01f0134297619fbe7e33db084e0aa /toolkit/components/nimbus/schemas/ExperimentFeatureRemote.schema.json
parentInitial commit. (diff)
downloadthunderbird-6bf0a5cb5034a7e684dcc3500e841785237ce2dd.tar.xz
thunderbird-6bf0a5cb5034a7e684dcc3500e841785237ce2dd.zip
Adding upstream version 1:115.7.0.upstream/1%115.7.0upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'toolkit/components/nimbus/schemas/ExperimentFeatureRemote.schema.json')
-rw-r--r--toolkit/components/nimbus/schemas/ExperimentFeatureRemote.schema.json152
1 files changed, 152 insertions, 0 deletions
diff --git a/toolkit/components/nimbus/schemas/ExperimentFeatureRemote.schema.json b/toolkit/components/nimbus/schemas/ExperimentFeatureRemote.schema.json
new file mode 100644
index 0000000000..a43d7d06af
--- /dev/null
+++ b/toolkit/components/nimbus/schemas/ExperimentFeatureRemote.schema.json
@@ -0,0 +1,152 @@
+{
+ "$schema": "http://json-schema.org/draft-07/schema#",
+ "$ref": "#/definitions/Feature",
+ "definitions": {
+ "RemoteFeatureConfigurations": {
+ "type": "object",
+ "properties": {
+ "id": {
+ "type": "string",
+ "description": "Feature name for which the defaults are provided."
+ },
+ "configurations": {
+ "type": "array",
+ "items": {
+ "type": "object",
+ "properties": {
+ "slug": {
+ "type": "string",
+ "description": "Configuration identifier that will be included in Telemetry."
+ },
+ "variables": {
+ "type": "object",
+ "description": "Key value pairs that should match the feature manifest definition.",
+ "properties": {
+ "enabled": {
+ "type": "boolean"
+ }
+ },
+ "required": ["enabled"]
+ },
+ "targeting": {
+ "type": "string",
+ "description": "Target the configuration only to specific clients."
+ },
+ "bucketConfig": {
+ "type": "object",
+ "properties": {
+ "randomizationUnit": {
+ "type": "string",
+ "description": "A unique, stable identifier for the user used as an input to bucket hashing"
+ },
+ "namespace": {
+ "type": "string",
+ "description": "Additional inputs to the hashing function"
+ },
+ "start": {
+ "type": "number",
+ "description": "Index of start of the range of buckets"
+ },
+ "count": {
+ "type": "number",
+ "description": "Number of buckets to check"
+ },
+ "total": {
+ "type": "number",
+ "description": "Total number of buckets",
+ "default": 10000
+ }
+ },
+ "required": [
+ "randomizationUnit",
+ "namespace",
+ "start",
+ "count",
+ "total"
+ ],
+ "additionalProperties": false,
+ "description": "Bucketing configuration"
+ },
+ "description": {
+ "type": "string",
+ "description": "Explanation for configuration and targeting"
+ }
+ },
+ "required": ["variables", "targeting", "bucketConfig", "slug"],
+ "additionalProperties": false
+ }
+ }
+ },
+ "required": ["id", "configurations"],
+ "additionalProperties": false
+ },
+ "RemoteFeatureConfiguration": {
+ "type": "object",
+ "properties": {
+ "slug": {
+ "type": "string",
+ "description": "Configuration identifier that will be included in Telemetry."
+ },
+ "isEarlyStartup": {
+ "type": "boolean",
+ "description": "If the feature values should be cached in prefs for fast early startup."
+ },
+ "variables": {
+ "type": "object",
+ "description": "Key value pairs that should match the feature manifest definition.",
+ "properties": {
+ "enabled": {
+ "type": "boolean"
+ }
+ },
+ "required": ["enabled"]
+ },
+ "targeting": {
+ "type": "string",
+ "description": "Target the configuration only to specific clients."
+ },
+ "bucketConfig": {
+ "type": "object",
+ "properties": {
+ "randomizationUnit": {
+ "type": "string",
+ "description": "A unique, stable identifier for the user used as an input to bucket hashing"
+ },
+ "namespace": {
+ "type": "string",
+ "description": "Additional inputs to the hashing function"
+ },
+ "start": {
+ "type": "number",
+ "description": "Index of start of the range of buckets"
+ },
+ "count": {
+ "type": "number",
+ "description": "Number of buckets to check"
+ },
+ "total": {
+ "type": "number",
+ "description": "Total number of buckets",
+ "default": 10000
+ }
+ },
+ "required": [
+ "randomizationUnit",
+ "namespace",
+ "start",
+ "count",
+ "total"
+ ],
+ "additionalProperties": false,
+ "description": "Bucketing configuration"
+ },
+ "description": {
+ "type": "string",
+ "description": "Explanation for configuration and targeting"
+ }
+ },
+ "required": ["variables", "targeting", "slug"],
+ "additionalProperties": false
+ }
+ }
+}