screwdriver-data-schema 22.9.0 → 22.9.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/models/pipeline.js +6 -5
- package/package.json +1 -1
package/models/pipeline.js
CHANGED
|
@@ -107,7 +107,7 @@ const MODEL = {
|
|
|
107
107
|
.optional()
|
|
108
108
|
};
|
|
109
109
|
|
|
110
|
-
const UPDATE_MODEL = { ...CREATE_MODEL, settings: MODEL.settings };
|
|
110
|
+
const UPDATE_MODEL = { ...CREATE_MODEL, settings: MODEL.settings, badges: MODEL.badges };
|
|
111
111
|
|
|
112
112
|
module.exports = {
|
|
113
113
|
/**
|
|
@@ -147,7 +147,8 @@ module.exports = {
|
|
|
147
147
|
'prChain',
|
|
148
148
|
'parameters',
|
|
149
149
|
'subscribedScmUrlsWithActions',
|
|
150
|
-
'settings'
|
|
150
|
+
'settings',
|
|
151
|
+
'badges'
|
|
151
152
|
]
|
|
152
153
|
)
|
|
153
154
|
).label('Get Pipeline'),
|
|
@@ -168,9 +169,9 @@ module.exports = {
|
|
|
168
169
|
* @property update
|
|
169
170
|
* @type {Joi}
|
|
170
171
|
*/
|
|
171
|
-
update: Joi.object(
|
|
172
|
-
'
|
|
173
|
-
),
|
|
172
|
+
update: Joi.object(
|
|
173
|
+
mutate(UPDATE_MODEL, [], ['checkoutUrl', 'rootDir', 'autoKeysGeneration', 'settings', 'badges'])
|
|
174
|
+
).label('Update Pipeline'),
|
|
174
175
|
|
|
175
176
|
/**
|
|
176
177
|
* List of fields that determine a unique row
|