{
    "$id": "https://xshl.org/schemas/1.1/definitions/event.json",
    "$schema": "https://json-schema.org/draft/2020-12/schema",
    "name": "event-xshl",
    "version": "1.2.2",
    "title": "Event",
    "description": "Event a thing that happens, especially one of importance.",
    "type": "object",
    "required": ["date"],
    "additionalProperties": false,
    "properties": {
        "@context": {
            "$ref": "https://xshl.org/schemas/1.1/definitions/context.json"
        },
        "@type": {
            "$ref": "https://xshl.org/schemas/1.1/definitions/type.json"
        },
        "@id": { "$ref": "https://xshl.org/schemas/1.1/definitions/id.json" },
        "date": { "type": "string", "format": "date" },
        "time": { "type": "string", "format": "time" },
        "place": {
            "oneOf": [
                {
                    "$ref": "https://xshl.org/schemas/1.1/definitions/place.json"
                },
                {
                    "type": "array",
                    "items": {
                        "$ref": "https://xshl.org/schemas/1.1/definitions/place.json"
                    },
                    "minItems": 2,
                    "uniqueItems": true
                }
            ]
        }
    }
}
