screwdriver-data-schema
Advanced tools
Comparing version 10.0.5 to 10.1.0
@@ -58,3 +58,4 @@ 'use strict'; | ||
input: SCHEMA_INPUT, | ||
output: SCHEMA_OUTPUT | ||
output: SCHEMA_OUTPUT, | ||
jobPermutations: SCHEMA_JOB_PERMUTATIONS | ||
}; |
@@ -5,2 +5,17 @@ 'use strict'; | ||
const STEP_CODE = Joi | ||
.number().integer() | ||
.description('Exit code'); | ||
const STEP_TIME = Joi | ||
.number().positive() | ||
.description('Elapsed time in seconds'); | ||
const STEP_NAME = Joi | ||
.string() | ||
.description('Name of the Step'); | ||
const STEP = Joi | ||
.object().keys({ | ||
name: STEP_NAME.required(), | ||
code: STEP_CODE.optional(), | ||
time: STEP_TIME.optional() | ||
}).description('Step metadata'); | ||
const MODEL = { | ||
@@ -66,2 +81,6 @@ id: Joi | ||
steps: Joi | ||
.array().items(STEP) | ||
.description('List of steps'), | ||
status: Joi | ||
@@ -98,3 +117,3 @@ .string().valid([ | ||
], [ | ||
'container', 'parentBuildId', 'sha', 'startTime', 'endTime', 'meta', 'parameters' | ||
'container', 'parentBuildId', 'sha', 'startTime', 'endTime', 'meta', 'parameters', 'steps' | ||
])).label('Get Build'), | ||
@@ -101,0 +120,0 @@ |
@@ -7,3 +7,4 @@ 'use strict'; | ||
const user = require('./user'); | ||
const log = require('./log'); | ||
module.exports = { build, job, pipeline, user }; | ||
module.exports = { build, job, pipeline, user, log }; |
'use strict'; | ||
const Joi = require('joi'); | ||
const mutate = require('../lib/mutate'); | ||
const validator = require('../api/validator'); | ||
@@ -23,2 +24,4 @@ const MODEL = { | ||
permutations: validator.jobPermutations, | ||
description: Joi | ||
@@ -62,3 +65,3 @@ .string().max(100) | ||
], [ | ||
'description', 'containers' | ||
'description', 'containers', 'permutations' | ||
])).label('Get Job'), | ||
@@ -73,4 +76,3 @@ | ||
update: Joi.object(mutate(MODEL, [], [ | ||
'state', | ||
'containers' | ||
'state' | ||
])).label('Update Job'), | ||
@@ -77,0 +79,0 @@ |
{ | ||
"name": "screwdriver-data-schema", | ||
"version": "10.0.5", | ||
"version": "10.1.0", | ||
"description": "Internal Data Schema of Screwdriver", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
54051
88
1340