alexa-samples / alexa-smarthome

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

Validation scheme is not working. #91

Closed Sharvin26 closed 5 years ago

Sharvin26 commented 5 years ago

I am using the validation schema in the above code and I am getting a oneOf error when operating on the devices from the companion app. Even the devices couldn't be discovered and getting the error "can't find any devices" on the Alexa Companion App. Is this validation schema made for V2 payload only??

pinoyyid commented 5 years ago

I found that, to get the example working, I needed to comment out line 222: validate_message(request, response)

Sharvin26 commented 5 years ago

Currently, I am working on that basis only. Removing the validation won't be a proper way in the long run. I wanted to know what changes they have made in v3 validation (Not Sure about it though) or what's making the validation fail so to fix it.

Sharvin26 commented 5 years ago

Well, there is not a bug in the validation. This is not a complete Schema if you add something in the code then add a validation schema code for that purpose