Open kakopappa opened 5 years ago
Hello,
Doorbell JSON schema validation seems to be wrong. (or maybe i am doing something wrong)
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
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
Hello,
Doorbell JSON schema validation seems to be wrong. (or maybe i am doing something wrong)
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
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