screwdriver-data-schema 23.0.0 → 23.0.1
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/build.js +0 -1
- package/models/collection.js +1 -10
- package/package.json +1 -1
package/models/build.js
CHANGED
package/models/collection.js
CHANGED
|
@@ -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
|
|
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
|
|