-
Notifications
You must be signed in to change notification settings - Fork 13
Expand file tree
/
Copy pathinputSchemas.js
More file actions
112 lines (112 loc) · 2.8 KB
/
inputSchemas.js
File metadata and controls
112 lines (112 loc) · 2.8 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
export default {
patchProject: {
type: "object",
properties: {
body: {
type: "object",
properties: {
name: { type: "string" },
},
required: ["name"],
},
},
},
patchMFE: {
type: "object",
properties: {
body: {
type: "object",
properties: {
name: { type: "string" },
default: { type: "string" },
activeVersions: {
type: "array",
items: {
type: "object",
properties: {
version: { type: "string" },
traffic: { type: "integer" },
},
required: ["version", "traffic"],
},
},
},
additionalProperties: false,
},
},
},
postMFEVersion: {
type: "object",
properties: {
body: {
type: "object",
properties: {
version: {
type: "object",
properties: {
url: { type: "string" },
fallbackUrl: { type: "string" },
metadata: {
type: "object",
properties: {
integrity: {
type: "string",
},
version: {
type: "string",
},
},
required: ["integrity", "version"],
},
extras: {
type: "object",
},
},
required: ["url", "metadata"],
},
deploymentStrategy: {
type: "string",
enum: [
"Linear10PercentEvery10Minutes",
"Linear10PercentEvery1Minute",
"Linear10PercentEvery2Minutes",
"Linear10PercentEvery3Minutes",
"Canary10Percent30Minutes",
"Canary10Percent5Minutes",
"Canary10Percent10Minutes",
"Canary10Percent15Minutes",
"AllAtOnce"
],
},
},
required: ["version"],
},
},
},
postDeployment: {
type: "object",
properties: {
body: {
type: "object",
properties: {
targetVersion: { type: "string" },
deploymentStrategy: {
type: "string",
enum: [
"Linear10PercentEvery10Minutes",
"Linear10PercentEvery1Minute",
"Linear10PercentEvery2Minutes",
"Linear10PercentEvery3Minutes",
"Canary10Percent30Minutes",
"Canary10Percent5Minutes",
"Canary10Percent10Minutes",
"Canary10Percent15Minutes",
"AllAtOnce"
],
},
},
required: ["targetVersion", "deploymentStrategy"],
},
},
},
};