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.
@@ -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(mutate(UPDATE_MODEL, [], ['checkoutUrl', 'rootDir', 'autoKeysGeneration', 'settings'])).label(
172
- 'Update Pipeline'
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
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "screwdriver-data-schema",
3
- "version": "22.9.0",
3
+ "version": "22.9.2",
4
4
  "description": "Internal Data Schema of Screwdriver",
5
5
  "main": "index.js",
6
6
  "scripts": {