screwdriver-data-schema 22.9.7 → 22.9.8
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 +11 -3
- package/package.json +1 -1
package/models/pipeline.js
CHANGED
|
@@ -12,11 +12,19 @@ const mutate = require('../lib/mutate');
|
|
|
12
12
|
|
|
13
13
|
const STATES = ['ACTIVE', 'INACTIVE'];
|
|
14
14
|
const BADGE = Joi.object({
|
|
15
|
-
|
|
15
|
+
defaultName: Joi.string()
|
|
16
|
+
.max(128)
|
|
17
|
+
.description('Auto populated dashboard name for a badge')
|
|
18
|
+
.example('screwdriver/ui'),
|
|
19
|
+
defaultUri: Joi.string()
|
|
20
|
+
.max(500)
|
|
21
|
+
.description('Auto populated url for the badge application dashboard')
|
|
22
|
+
.example('https://sonar.screwdriver.cd/dashboard?id=112233'),
|
|
23
|
+
name: Joi.string().max(128).description('The dashboard name for a badge').example('my-screwdriver/ui'),
|
|
16
24
|
uri: Joi.string()
|
|
17
25
|
.max(500)
|
|
18
|
-
.description('
|
|
19
|
-
.example('https://sonar.screwdriver.cd/dashboard?id=112233')
|
|
26
|
+
.description('The url the badge application dashboard')
|
|
27
|
+
.example('https://my-sonar.screwdriver.cd/dashboard?id=112233')
|
|
20
28
|
});
|
|
21
29
|
|
|
22
30
|
const CREATE_MODEL = {
|