chore(deps): bump jsonschema from 1.2.7 to 1.4.0

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] <support@github.com>
Signed-off-by: Fredrik Adelöw <freben@gmail.com>
This commit is contained in:
dependabot[bot]
2021-05-04 04:20:01 +00:00
committed by Fredrik Adelöw
parent a4b47da357
commit 75c8cec394
3 changed files with 12 additions and 6 deletions
@@ -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(