Closed camdendobrien closed 1 year ago
There is actually a syntax error in the schema, will open a PR to fix it shortly.
While dangling commas are fine in JavaScript, they are not allowed in JSON. This seems to be the issue.
Looks like the schema is machine-generated! So you may have to dig into how, and fix the issue in code, rather than just PR the schema file.
Looks like the schema is machine-generated! So you may have to dig into how, and fix the issue in code, rather than just PR the schema file.
Oh ok, that's a pain :joy:
Can't find any information on how the schema is generated, hopefully will hear from the maintainers at some point ¯\_(ツ)_/¯
I don't think the code required to do this is in this repo, nor the source. The repo readme just says "resources".
Also suggest, add tests to check that schemas provided are...
Closing this issue as there is a closed pull request https://github.com/alexa/alexa-smarthome/pull/175
I'm trying to create some integration tests for a smart home skill back-end using the validation schema in this repository, but when I try to parse the file (using
JSON.parse
) I get an error:It's odd because looking at that part of the file it looks absolutely fine: