Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

screwdriver-data-schema

Package Overview
Dependencies
Maintainers
2
Versions
510
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

screwdriver-data-schema - npm Package Compare versions

Comparing version 10.0.5 to 10.1.0

models/log.js

3

api/validator.js

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc