alexa-samples / alexa-smarthome

Resources for Alexa Smart Home developers.
https://alexa.design/smarthome
Other
685 stars 336 forks source link

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 #202

Open ashishagarwal7 opened 4 months ago

ashishagarwal7 commented 4 months ago

For validation of request and response json schema draft-04 is required as per link 1. But when matching the schema using link 2 with draft-04 as reference, is showing error however matching with draft-03 as reference, it is showing : No errors found. JSON validates against the schema.

please check which can we use in validation.

link 1: https://github.com/alexa-samples/alexa-smarthome/wiki/Validation-Schemas link 2: https://www.jsonschemavalidator.net/

draft3 draft4
ashishagarwal7 commented 4 months ago

more accurate image of json schema:

draft3 draft4