{
    "$schema": "http://json-schema.org/draft-07/schema#",
    "$id": "https://github.com/kloiasoft/eventapis/blob/master/spec/schema/event-key.json",
    "title": "EventApis Event Key",
    "description": "EventApis Event Key Schema",
    "type": "object",
    "properties": {
        "entityId": {
            "type": "string",
            "description": "Aggregation Id of related Default Entity, UUIDs can be used but not mandatory"
        },
        "version": {
            "type": "integer",
            "minimum": 0,
            "description": "Aggregation Version of related Default Entity"
        }
    },
    "additionalProperties": false,
    "required": [
        "entityId",
        "version"
    ]
}