## YAML Template.
##---
$schema: http://json-schema.org/draft-04/schema#
id: "/response/ble/peripheral/descriptor_read"
description : "callback of read descriptor"


type: object
required : [peripheral]
properties:
        peripheral:
            type : object
            additionalProperties: false
            required : [read_descriptor_result]
            properties:

                read_descriptor_result :
                        type : object
                        required: [service_uuid, characteristic_uuid,descriptor_uuid,  data, result]
                        additionalProperties: false
                        properties:
                            service_uuid : {$ref : "/uuid"}
                            characteristic_uuid : {$ref : "/uuid"}
                            descriptor_uuid : {$ref : "/uuid"}
                            data : {$ref : "/dataArray"}
                            result :
                                type : string
                                enum : [success , failed]