Skip to content

Commit

Permalink
Use forked template validator (#10)
Browse files Browse the repository at this point in the history
  • Loading branch information
QubitPi committed Mar 5, 2024
1 parent 477e81a commit 243afc3
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -124,7 +124,7 @@
"screwdriver-scm-github": "^12.2.4",
"screwdriver-scm-gitlab": "^3.1.0",
"screwdriver-scm-router": "^7.0.0",
"screwdriver-template-validator": "^7.0.0",
"screwdriver-cd-template-validator": "^7.0.3",
"screwdriver-workflow-parser": "^4.1.1",
"sqlite3": "^5.1.4",
"stream": "0.0.2",
Expand Down
2 changes: 1 addition & 1 deletion plugins/pipelines/templates/create.js
Expand Up @@ -2,7 +2,7 @@

const boom = require('@hapi/boom');
const schema = require('screwdriver-data-schema');
const validator = require('screwdriver-template-validator').parsePipelineTemplate;
const validator = require('screwdriver-cd-template-validator').parsePipelineTemplate;
const templateSchema = schema.api.templateValidator;

module.exports = () => ({
Expand Down
2 changes: 1 addition & 1 deletion plugins/pipelines/templates/validate.js
Expand Up @@ -3,7 +3,7 @@
const boom = require('@hapi/boom');
const schema = require('screwdriver-data-schema');
const templateSchema = schema.api.templateValidator;
const pipelineValidator = require('screwdriver-template-validator').parsePipelineTemplate;
const pipelineValidator = require('screwdriver-cd-template-validator').parsePipelineTemplate;

module.exports = () => ({
method: 'POST',
Expand Down
2 changes: 1 addition & 1 deletion plugins/template-validator.js
Expand Up @@ -3,7 +3,7 @@
const boom = require('@hapi/boom');
const schema = require('screwdriver-data-schema');
const templateSchema = schema.api.templateValidator;
const validator = require('screwdriver-template-validator').parseJobTemplate;
const validator = require('screwdriver-cd-template-validator').parseJobTemplate;

/**
* Hapi Template Validator Plugin
Expand Down
2 changes: 1 addition & 1 deletion plugins/templates/create.js
Expand Up @@ -3,7 +3,7 @@
const urlLib = require('url');
const boom = require('@hapi/boom');
const schema = require('screwdriver-data-schema');
const validator = require('screwdriver-template-validator').parseJobTemplate;
const validator = require('screwdriver-cd-template-validator').parseJobTemplate;
const templateSchema = schema.api.templateValidator;
const hoek = require('@hapi/hoek');

Expand Down

0 comments on commit 243afc3

Please sign in to comment.