Skip to content

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