{
    "$schema": "http://json-schema.org/draft-07/schema",
    "type": "object",
    "title": "Event schema",
    "description": "The event schema comprises the event related information",
    "required": [
        "specversion",
        "type",
        "source",
        "subject",
        "id",
        "data"
    ],
    "properties": {
        "specversion": {
            "type": "string"
        },
        "type": {
            "type": "string"
        },
        "subject": {
            "type": "string"
        },
        "source": {
            "type": "string"
        },
        "id": {
            "type": "string"
        },
        "time": {
            "type": "string",
       		"format": "yyyy-MM-dd'T'HH:mm:ss.SSSZ"
        },
        "correlationid": {
            "type": "string"
        },
        "serviceid": {
            "type": "string"
        },
        "channelid": {
            "type": "string"
        },
        "organizationid": {
            "type": "string"
        },
        "tenantid": {
            "type": "string"
        },
        "businesskey": {
            "type": "string"
        },
        "sequenceno": {
            "type": "integer"
        },
        "extension-mscontext": {
            "type": "object",
            "properties": {
                "authorization": {
                    "type": "string"
                },
                "customfilterid": {
                    "type": "string"
                },
                "operationinstanceid": {
                    "type": "string"
                },
                "sequenceinstanceid": {
                    "type": "string"
                },
                "priority": {
                    "type": "integer"
                }
            }
        },
        "datacontenttype": {
            "type": "string"
        },
        "data": {
  "type" : "object",
  "id" : "urn:jsonschema:com:temenos:microservice:payments:event:PayeeDetailsEvent",
  "properties" : {
    "payeeId" : {
      "type" : "number"
    },
    "payeeName" : {
      "type" : "string"
    },
    "payeeType" : {
      "type" : "string"
    }
  }
}
    }
}
