зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1634103 - Messaging Experiment schema should require groups on a branch r=k88hudson
Differential Revision: https://phabricator.services.mozilla.com/D73104
This commit is contained in:
Родитель
a5afe43f02
Коммит
8aee20896d
|
@ -41,28 +41,28 @@ const ActionSchemas = {
|
||||||
minItems: 1,
|
minItems: 1,
|
||||||
items: {
|
items: {
|
||||||
type: "object",
|
type: "object",
|
||||||
required: ["slug", "value", "ratio"],
|
required: ["slug", "value", "ratio", "groups"],
|
||||||
properties: {
|
properties: {
|
||||||
slug: {
|
slug: {
|
||||||
description:
|
description:
|
||||||
"Unique identifier for this branch of the experiment",
|
"Unique identifier for this branch of the experiment.",
|
||||||
type: "string",
|
type: "string",
|
||||||
pattern: "^[A-Za-z0-9\\-_]+$",
|
pattern: "^[A-Za-z0-9\\-_]+$",
|
||||||
},
|
},
|
||||||
value: {
|
value: {
|
||||||
description: "Message content",
|
description: "Message content.",
|
||||||
type: "object",
|
type: "object",
|
||||||
properties: {},
|
properties: {},
|
||||||
},
|
},
|
||||||
ratio: {
|
ratio: {
|
||||||
description:
|
description:
|
||||||
"Ratio of users who should be grouped into this branch",
|
"Ratio of users who should be grouped into this branch.",
|
||||||
type: "integer",
|
type: "integer",
|
||||||
minimum: 1,
|
minimum: 1,
|
||||||
},
|
},
|
||||||
groups: {
|
groups: {
|
||||||
description:
|
description:
|
||||||
"A list of experiment groups that can be used to exclude or select related experiments",
|
"A list of experiment groups that can be used to exclude or select related experiments. May be empty.",
|
||||||
type: "array",
|
type: "array",
|
||||||
items: {
|
items: {
|
||||||
type: "string",
|
type: "string",
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "@mozilla/normandy-action-argument-schemas",
|
"name": "@mozilla/normandy-action-argument-schemas",
|
||||||
"version": "0.10.0",
|
"version": "0.10.1",
|
||||||
"description": "Schemas for Normandy action arguments",
|
"description": "Schemas for Normandy action arguments",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"author": "Michael Cooper <mcooper@mozilla.com>",
|
"author": "Michael Cooper <mcooper@mozilla.com>",
|
||||||
|
|
Загрузка…
Ссылка в новой задаче