Skip to content

Commit

Permalink
Merge pull request #556 from screwdriver-cd/validate
Browse files Browse the repository at this point in the history
fix: add templateVersionId to validator output
  • Loading branch information
VonnyJap authored Mar 5, 2024
2 parents 4187ac9 + b7165ef commit c387a2b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
4 changes: 3 additions & 1 deletion api/validator.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ const Job = require('../config/job');
const Parameters = require('../config/parameters');
const Regex = require('../config/regex');
const WorkflowGraph = require('../config/workflowGraph');
const Pipeline = require('../models/pipeline');

const SCHEMA_JOB_COMMAND = Joi.object()
.keys({
Expand Down Expand Up @@ -65,7 +66,8 @@ const SCHEMA_OUTPUT = Joi.object()
parameters: Parameters.parameters.default({}),
warnMessages: Joi.array().optional(),
stages: Base.stages.optional(),
subscribe: Base.subscribe
subscribe: Base.subscribe,
templateVersionId: Pipeline.fields.templateVersionId
})
.label('Execution information');

Expand Down
1 change: 1 addition & 0 deletions test/data/validator.output.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -65,3 +65,4 @@ jobs:
environment: {}
secrets:
- NPM_TOKEN
templateVersionId: 123

0 comments on commit c387a2b

Please sign in to comment.