Skip to content

Fix thow #1

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Fix thow #1

wants to merge 1 commit into from

Conversation

tinovyatkin
Copy link

With throw: true we are getting error (this patch fixes that):

TypeError: self.root.emitError is not a function
        at ValidateLayer.addErrorList (/Users/tino-afflu/Repos/cloud-data-sources-tf/node_modules/jsonschemaparse/lib/schema.js:1124:42)
        at ValidateLayer.startString (/Users/tino-afflu/Repos/cloud-data-sources-tf/node_modules/jsonschemaparse/lib/schema.js:1209:8)
        at /Users/tino-afflu/Repos/cloud-data-sources-tf/node_modules/jsonschemaparse/lib/parse.js:1236:46
        at /Users/tino-afflu/Repos/cloud-data-sources-tf/node_modules/jsonschemaparse/lib/parse.js:323:3
        at Array.forEach (<anonymous>)
        at StreamParser.validateInstance (/Users/tino-afflu/Repos/cloud-data-sources-tf/node_modules/jsonschemaparse/lib/parse.js:322:23)
        at StreamParser.startString (/Users/tino-afflu/Repos/cloud-data-sources-tf/node_modules/jsonschemaparse/lib/parse.js:1236:7)
        at StreamParser.parseBlock (/Users/tino-afflu/Repos/cloud-data-sources-tf/node_modules/jsonschemaparse/lib/parse.js:436:10)
        at StreamParser.Object.<anonymous>.StreamParser._transform.StreamParser._write (/Users/tino-afflu/Repos/cloud-data-sources-tf/node_modules/jsonschemaparse/lib/parse.js:329:8)
        at writeOrBuffer (node:internal/streams/writable:389:12)

With `throw: true` we are getting error:
```sh
TypeError: self.root.emitError is not a function
        at ValidateLayer.addErrorList (/Users/tino-afflu/Repos/cloud-data-sources-tf/node_modules/jsonschemaparse/lib/schema.js:1124:42)
        at ValidateLayer.startString (/Users/tino-afflu/Repos/cloud-data-sources-tf/node_modules/jsonschemaparse/lib/schema.js:1209:8)
        at /Users/tino-afflu/Repos/cloud-data-sources-tf/node_modules/jsonschemaparse/lib/parse.js:1236:46
        at /Users/tino-afflu/Repos/cloud-data-sources-tf/node_modules/jsonschemaparse/lib/parse.js:323:3
        at Array.forEach (<anonymous>)
        at StreamParser.validateInstance (/Users/tino-afflu/Repos/cloud-data-sources-tf/node_modules/jsonschemaparse/lib/parse.js:322:23)
        at StreamParser.startString (/Users/tino-afflu/Repos/cloud-data-sources-tf/node_modules/jsonschemaparse/lib/parse.js:1236:7)
        at StreamParser.parseBlock (/Users/tino-afflu/Repos/cloud-data-sources-tf/node_modules/jsonschemaparse/lib/parse.js:436:10)
        at StreamParser.Object.<anonymous>.StreamParser._transform.StreamParser._write (/Users/tino-afflu/Repos/cloud-data-sources-tf/node_modules/jsonschemaparse/lib/parse.js:329:8)
        at writeOrBuffer (node:internal/streams/writable:389:12)
```
@awwright awwright self-assigned this Jan 26, 2022
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants