screwdriver-api 7.0.111 → 7.0.113
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/package.json
CHANGED
|
@@ -5,7 +5,12 @@ const joi = require('joi');
|
|
|
5
5
|
const schema = require('screwdriver-data-schema');
|
|
6
6
|
const eventListSchema = joi.array().items(schema.models.event.get).label('List of events');
|
|
7
7
|
const prNumSchema = schema.models.event.base.extract('prNum');
|
|
8
|
-
const shaSchema =
|
|
8
|
+
const shaSchema = joi
|
|
9
|
+
.string()
|
|
10
|
+
.hex()
|
|
11
|
+
.max(40)
|
|
12
|
+
.description('SHA or partial SHA')
|
|
13
|
+
.example('ccc49349d3cffbd12ea9e3d41521480b4aa5de5f');
|
|
9
14
|
const typeSchema = schema.models.event.base.extract('type');
|
|
10
15
|
const pipelineIdSchema = schema.models.pipeline.base.extract('id');
|
|
11
16
|
|