screwdriver-data-schema 23.0.0 → 23.0.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/api/validator.js CHANGED
@@ -7,6 +7,7 @@ const Job = require('../config/job');
7
7
  const Parameters = require('../config/parameters');
8
8
  const Regex = require('../config/regex');
9
9
  const WorkflowGraph = require('../config/workflowGraph');
10
+ const Pipeline = require('../models/pipeline');
10
11
 
11
12
  const SCHEMA_JOB_COMMAND = Joi.object()
12
13
  .keys({
@@ -65,7 +66,8 @@ const SCHEMA_OUTPUT = Joi.object()
65
66
  parameters: Parameters.parameters.default({}),
66
67
  warnMessages: Joi.array().optional(),
67
68
  stages: Base.stages.optional(),
68
- subscribe: Base.subscribe
69
+ subscribe: Base.subscribe,
70
+ templateVersionId: Pipeline.fields.templateVersionId
69
71
  })
70
72
  .label('Execution information');
71
73
 
package/models/build.js CHANGED
@@ -158,7 +158,6 @@ module.exports = {
158
158
  'meta',
159
159
  'parameters',
160
160
  'steps',
161
- 'commit',
162
161
  'eventId',
163
162
  'environment',
164
163
  'statusMessage',
@@ -3,17 +3,8 @@
3
3
  const Joi = require('joi');
4
4
  const mutate = require('../lib/mutate');
5
5
 
6
- const BUILD_MODEL = require('./build').get;
7
6
  const PIPELINE_MODEL = require('./pipeline').get;
8
- const PRS = {
9
- open: Joi.number().integer().min(0),
10
- failing: Joi.number().integer().min(0)
11
- };
12
- const PIPELINE_OBJECT = PIPELINE_MODEL.keys({
13
- lastBuilds: Joi.array().items(BUILD_MODEL).optional(),
14
- prs: Joi.object(PRS).optional()
15
- });
16
- const PIPELINES_MODEL = Joi.array().items(PIPELINE_OBJECT);
7
+ const PIPELINES_MODEL = Joi.array().items(PIPELINE_MODEL);
17
8
  const MODEL = {
18
9
  id: Joi.number().integer().positive(),
19
10
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "screwdriver-data-schema",
3
- "version": "23.0.0",
3
+ "version": "23.0.2",
4
4
  "description": "Internal Data Schema of Screwdriver",
5
5
  "main": "index.js",
6
6
  "scripts": {