Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Fix thow #1

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants