alexa-samples / alexa-smarthome

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

Doorbell schema validation errors #126

Open kakopappa opened 5 years ago

kakopappa commented 5 years ago

Hello,

Doorbell JSON schema validation seems to be wrong. (or maybe i am doing something wrong)

  1. Copied the https://raw.githubusercontent.com/alexa/alexa-smarthome/master/validation_schemas/alexa_smart_home_message_schema.json to to https://www.jsonschemavalidator.net/ and select 06

  2. Copy the example request from https://developer.amazon.com/docs/device-apis/alexa-doorbelleventsource.html

{ "context": { }, "event": { "header": { "messageId": "9eac4fa2-9de0-4e75-ac38-9dde79abb1bd", "namespace" : "Alexa.DoorbellEventSource", "name": "DoorbellPress", "payloadVersion": "3" }, "endpoint": { "scope": { "type": "BearerToken", "token": "access-token-from-Amazon" }, "endpointId": "appliance-001" }, "payload" : { "cause": { "type": "PHYSICAL_INTERACTION" }, "timestamp": "2018-06-09T23:23:23.23Z" } } }

Validation produces this

image