From 75c8cec394fff82850d53e5e8f729c5dd1211f40 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 4 May 2021 04:20:01 +0000 Subject: [PATCH 1/2] chore(deps): bump jsonschema from 1.2.7 to 1.4.0 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Bumps [jsonschema](https://github.com/tdegrunt/jsonschema) from 1.2.7 to 1.4.0. - [Release notes](https://github.com/tdegrunt/jsonschema/releases) - [Commits](https://github.com/tdegrunt/jsonschema/compare/v1.2.7...v1.4.0) Signed-off-by: dependabot[bot] Signed-off-by: Fredrik Adelöw --- .changeset/small-sheep-smoke.md | 5 +++++ .../scaffolder-backend/src/scaffolder/tasks/TaskWorker.ts | 7 ++++--- yarn.lock | 6 +++--- 3 files changed, 12 insertions(+), 6 deletions(-) create mode 100644 .changeset/small-sheep-smoke.md diff --git a/.changeset/small-sheep-smoke.md b/.changeset/small-sheep-smoke.md new file mode 100644 index 0000000000..9cff7591ee --- /dev/null +++ b/.changeset/small-sheep-smoke.md @@ -0,0 +1,5 @@ +--- +'@backstage/plugin-scaffolder-backend': patch +--- + +bump jsonschema from 1.2.7 to 1.4.0 diff --git a/plugins/scaffolder-backend/src/scaffolder/tasks/TaskWorker.ts b/plugins/scaffolder-backend/src/scaffolder/tasks/TaskWorker.ts index 9e4deab31a..1d0d5ad3a3 100644 --- a/plugins/scaffolder-backend/src/scaffolder/tasks/TaskWorker.ts +++ b/plugins/scaffolder-backend/src/scaffolder/tasks/TaskWorker.ts @@ -143,9 +143,10 @@ export class TaskWorker { }); if (action.schema?.input) { - const validateResult = validateJsonSchema(input, action.schema, { - propertyName: 'input', - }); + const validateResult = validateJsonSchema( + input, + action.schema.input, + ); if (!validateResult.valid) { const errors = validateResult.errors.join(', '); throw new InputError( diff --git a/yarn.lock b/yarn.lock index 8cb2ddd221..b7bff9836d 100644 --- a/yarn.lock +++ b/yarn.lock @@ -17100,9 +17100,9 @@ jsonpointer@^4.0.1: integrity sha1-T9kss04OnbPInIYi7PUfm5eMbLk= jsonschema@^1.2.6: - version "1.2.7" - resolved "https://registry.npmjs.org/jsonschema/-/jsonschema-1.2.7.tgz#4e6d6dc4d83dc80707055ba22c00ec6152c0e6e9" - integrity sha512-3dFMg9hmI9LdHag/BRIhMefCfbq1hicvYMy8YhZQorAdzOzWz7NjniSpn39yjpzUAMIWtGyyZuH2KNBloH7ZLw== + version "1.4.0" + resolved "https://registry.npmjs.org/jsonschema/-/jsonschema-1.4.0.tgz#1afa34c4bc22190d8e42271ec17ac8b3404f87b2" + integrity sha512-/YgW6pRMr6M7C+4o8kS+B/2myEpHCrxO4PEWnqJNBFMjn7EWXqlQ4tGwL6xTHeRplwuZmcAncdvfOad1nT2yMw== jsonwebtoken@^8.5.1: version "8.5.1" From 84d6ee9e867cf3fd30bda8ba35fe2a66bc51d074 Mon Sep 17 00:00:00 2001 From: Ben Lambert Date: Tue, 4 May 2021 14:33:36 +0200 Subject: [PATCH 2/2] Update small-sheep-smoke.md Signed-off-by: blam --- .changeset/small-sheep-smoke.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.changeset/small-sheep-smoke.md b/.changeset/small-sheep-smoke.md index 9cff7591ee..fd917159d3 100644 --- a/.changeset/small-sheep-smoke.md +++ b/.changeset/small-sheep-smoke.md @@ -2,4 +2,4 @@ '@backstage/plugin-scaffolder-backend': patch --- -bump jsonschema from 1.2.7 to 1.4.0 +bump `jsonschema` from 1.2.7 to 1.4.0