screwdriver-data-schema 22.3.0 → 22.4.0

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/core/scm.js CHANGED
@@ -5,6 +5,8 @@ const Regex = require('../config/regex');
5
5
 
6
6
  const SCHEMA_USER = Joi.object()
7
7
  .keys({
8
+ id: Joi.alternatives(Joi.string(), Joi.number().integer().positive()).allow('').optional(),
9
+
8
10
  url: Joi.string()
9
11
  .uri()
10
12
  .allow('')
@@ -73,10 +73,9 @@ module.exports = {
73
73
  'isActive',
74
74
  'managedByScrewdriver',
75
75
  'maintainer',
76
- 'weightage',
77
- 'group'
76
+ 'weightage'
78
77
  ],
79
- ['description']
78
+ ['description', 'group']
80
79
  )
81
80
  ).label('Get BuildCluster'),
82
81
 
@@ -113,7 +112,7 @@ module.exports = {
113
112
  mutate(
114
113
  MODEL,
115
114
  ['name', 'scmOrganizations', 'managedByScrewdriver', 'maintainer'],
116
- ['description', 'isActive', 'weightage', 'scmContext']
115
+ ['description', 'isActive', 'weightage', 'scmContext', 'group']
117
116
  )
118
117
  ).label('Create Build'),
119
118
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "screwdriver-data-schema",
3
- "version": "22.3.0",
3
+ "version": "22.4.0",
4
4
  "description": "Internal Data Schema of Screwdriver",
5
5
  "main": "index.js",
6
6
  "scripts": {