screwdriver-data-schema 22.9.16 → 22.10.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/config/settings.js +3 -1
- package/models/build.js +3 -4
- package/models/event.js +1 -1
- package/package.json +1 -1
package/config/settings.js
CHANGED
|
@@ -14,6 +14,7 @@ const SCHEMA_DISPLAY_JOB_NAME_LENGTH = Joi.number()
|
|
|
14
14
|
.default(20)
|
|
15
15
|
.description('Job name length to display on workflowGraph')
|
|
16
16
|
.example(20);
|
|
17
|
+
const SCHEMA_ALLOW_NOTIFICATION = Joi.boolean().optional().default(false).description('Allow Browser Notification');
|
|
17
18
|
const SCHEMA_METRICS_DOWNTIME_JOBS = Joi.array()
|
|
18
19
|
.items(
|
|
19
20
|
Joi.number().integer().positive().description('Identifier for this job').example(123345).optional().allow(null)
|
|
@@ -53,7 +54,8 @@ const SCHEMA_USER_SETTINGS = Joi.object()
|
|
|
53
54
|
|
|
54
55
|
SCHEMA_USER_SETTINGS.append({
|
|
55
56
|
displayJobNameLength: SCHEMA_DISPLAY_JOB_NAME_LENGTH,
|
|
56
|
-
timestampFormat: SCHEMA_TIMESTAMP_FORMAT
|
|
57
|
+
timestampFormat: SCHEMA_TIMESTAMP_FORMAT,
|
|
58
|
+
allowNotification: SCHEMA_ALLOW_NOTIFICATION
|
|
57
59
|
});
|
|
58
60
|
|
|
59
61
|
module.exports = {
|
package/models/build.js
CHANGED
|
@@ -36,7 +36,7 @@ const MODEL = {
|
|
|
36
36
|
parentBuildId: Joi.array()
|
|
37
37
|
.items(PARENT_BUILD_ID)
|
|
38
38
|
.description('Identifier(s) of this parent build(s)')
|
|
39
|
-
.example([
|
|
39
|
+
.example([111, 222]),
|
|
40
40
|
|
|
41
41
|
parentBuilds: Joi.object()
|
|
42
42
|
.pattern(
|
|
@@ -104,9 +104,8 @@ const MODEL = {
|
|
|
104
104
|
};
|
|
105
105
|
|
|
106
106
|
const parentBuildIdSchema = Joi.alternatives()
|
|
107
|
-
.try(
|
|
108
|
-
.description('Identifier(s) of this parent build')
|
|
109
|
-
.example([123, 234]);
|
|
107
|
+
.try(MODEL.parentBuildId, PARENT_BUILD_ID)
|
|
108
|
+
.description('Identifier(s) of this parent build');
|
|
110
109
|
|
|
111
110
|
const environmentSchema = Joi.alternatives().try(Joi.array().items(Job.environment), Job.environment);
|
|
112
111
|
|
package/models/event.js
CHANGED
|
@@ -50,7 +50,7 @@ const MODEL = {
|
|
|
50
50
|
.example('~commit'),
|
|
51
51
|
type: Joi.string().valid('pr', 'pipeline').max(10).description('Type of the event').example('pr'),
|
|
52
52
|
workflowGraph: WorkflowGraph.workflowGraph.description('Graph representation of the workflow').example({
|
|
53
|
-
nodes: [{ name: '~commit' }, { name: 'main' }, { name: 'publish' }],
|
|
53
|
+
nodes: [{ name: '~commit' }, { name: 'main', id: 12345678 }, { name: 'publish', id: 23456789 }],
|
|
54
54
|
edges: [
|
|
55
55
|
{ src: '~commit', dest: 'main' },
|
|
56
56
|
{ src: 'main', dest: 'publish' }
|