Comments (4)
Closing due to inactivity.
from alexa-smarthome.
I have created 7 patches that make the schema validate against draft-04, draft-06, draft-07 and draft-2019-09. Since the schema is autogenerated and I don't have access to the generator, I decided patches were the best approach to convey what might need to change in the generator.
Patches 00, 01 and 02 fix bugs. Patch 03 removes exclusiveMinimum and exclusiveMaximum because they are doing nothing and fail against draft-05 and beyond. Patch 04 and 05 remove some unnecessary (04 and 05) and broken (05) OpenAPI extensions that are not part of any of the draft specifications. Patch 06 chances the schema version from draft-04 to draft-2019-09.
The patches can be found at https://github.com/pebender/alexa-for-lg-webos-tv/tree/main/src/common/smart-home-skill/alexa_smart_home_message_schema
from alexa-smarthome.
Could you tell me what is the issue?
from alexa-smarthome.
The problem is that the generated JSON in alexa_smart_home_message_schema.json is broken. As I mentioned above in my first comment, it fails with two different validators. As a result of it not working with the AJV validator is that it cannot be use to easily validate discovery messages. The patches I referenced above are what I had to change to get it to work.
from alexa-smarthome.
Related Issues (20)
- Is this repo maintained ?? HOT 16
- Alexa HOT 1
- Unable to get Access token using authorization code for a skill in lambda function HOT 3
- when testing smart home ample device it shows error HOT 2
- Validation schema fails to parse in Node.js HOT 7
- Add validation for Camera PTZ controllers HOT 1
- Getting Domain not whitelisted for using LWA javaScript SDK HOT 1
- Capability Evaluations & Test plans HOT 1
- "errorMessage": "2021-05-11T08:48:54.169Z d01782c6-b615-4b06-96b2-ac313bae6d72 Task timed out after 3.06 seconds"
- Adding Alexa.Cooking interfaces into the Validation Schemas? HOT 1
- Documentation misses an important gotcha HOT 1
- How to get utterance activity keys HOT 3
- Schema validation for endpointId using (.) periods HOT 1
- Alexa.PercentageController empty value in payload HOT 1
- Hm, I'm having trouble reaching null. [Alexa] PowerController TurnOff 0E:38:82:9E:54:6B undefined null HOT 3
- How to report bugs? HOT 1
- Can Alexa Smart Home Lambda skill response with custom so far? HOT 1
- Json schema draft-03 is given instead of draft-04 in validation_schemas/alexa_smart_home_message_schema.json in this link - https://github.com/alexa-samples/alexa-smarthome/wiki/Validation-Schemas HOT 1
- Lambda function not discovering devices? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from alexa-smarthome.