зеркало из 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,
|
||||
items: {
|
||||
type: "object",
|
||||
required: ["slug", "value", "ratio"],
|
||||
required: ["slug", "value", "ratio", "groups"],
|
||||
properties: {
|
||||
slug: {
|
||||
description:
|
||||
"Unique identifier for this branch of the experiment",
|
||||
"Unique identifier for this branch of the experiment.",
|
||||
type: "string",
|
||||
pattern: "^[A-Za-z0-9\\-_]+$",
|
||||
},
|
||||
value: {
|
||||
description: "Message content",
|
||||
description: "Message content.",
|
||||
type: "object",
|
||||
properties: {},
|
||||
},
|
||||
ratio: {
|
||||
description:
|
||||
"Ratio of users who should be grouped into this branch",
|
||||
"Ratio of users who should be grouped into this branch.",
|
||||
type: "integer",
|
||||
minimum: 1,
|
||||
},
|
||||
groups: {
|
||||
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",
|
||||
items: {
|
||||
type: "string",
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "@mozilla/normandy-action-argument-schemas",
|
||||
"version": "0.10.0",
|
||||
"version": "0.10.1",
|
||||
"description": "Schemas for Normandy action arguments",
|
||||
"main": "index.js",
|
||||
"author": "Michael Cooper <mcooper@mozilla.com>",
|
||||
|
|
Загрузка…
Ссылка в новой задаче