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 09:22:09 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-07 09:22:09 +0000
commit43a97878ce14b72f0981164f87f2e35e14151312 (patch)
tree620249daf56c0258faa40cbdcf9cfba06de2a846 /toolkit/components/nimbus/schemas/ExperimentFeatureRemote.schema.json
parentInitial commit. (diff)
downloadfirefox-43a97878ce14b72f0981164f87f2e35e14151312.tar.xz
firefox-43a97878ce14b72f0981164f87f2e35e14151312.zip
Adding upstream version 110.0.1.upstream/110.0.1upstream
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
+ }
+ }
+}