{
    "$id": "https://hydra.ugent.be/schema/special-events",
    "type": "object",
    "$schema": "http://json-schema.org/draft-07/schema#",
    "properties": {
        "special-events": {
            "$id": "/properties/special-events",
            "type": "array",
            "items": {
                "$id": "/properties/special-events/items",
                "type": "object",
                "required": [
                    "name",
                    "link",
                    "simple-text",
                    "image",
                    "html",
                    "priority",
                    "start",
                    "end",
                    "id",
                    "development"
                ],
                "properties": {
                    "name": {
                        "$id": "/properties/special-events/items/properties/name",
                        "type": "string",
                        "title": "The title of the event.",
                        "examples": [
                            "Rectorverkiezingen"
                        ]
                    },
                    "link": {
                        "$id": "/properties/special-events/items/properties/link",
                        "type": "string",
                        "title": "A link to a website about the event.",
                        "examples": [
                            "https://www.ugentkiest.be"
                        ]
                    },
                    "simple-text": {
                        "$id": "/properties/special-events/items/properties/simple-text",
                        "type": "string",
                        "title": "A short plain text description of the event.",
                        "examples": [
                            "Stemmen voor rectorverkiezingen kan nog tot dinsdag 8u."
                        ]
                    },
                    "image": {
                        "$id": "/properties/special-events/items/properties/image",
                        "type": "string",
                        "title": "Link to an image for the event"
                    },
                    "html": {
                        "$id": "/properties/special-events/items/properties/html",
                        "type": "string",
                        "title": "Larger text, using HTML, describing the event. Can be empty."
                    },
                    "priority": {
                        "$id": "/properties/special-events/items/properties/priority",
                        "type": "integer",
                        "title": "The priority of the event. 1000 is the highest priority, 0 the lowest.",
                        "examples": [
                            990
                        ]
                    },
                    "start": {
                        "$id": "/properties/special-events/items/properties/start",
                        "type": "string",
                        "title": "The start date when the event should be shown.",
                        "format": "date-time",
                        "examples": [
                            "2017-09-18T08:00:00+02:00"
                        ]
                    },
                    "end": {
                        "$id": "/properties/special-events/items/properties/end",
                        "type": "string",
                        "title": "The end date when the event should be shown.",
                        "format": "date-time",
                        "examples": [
                            "2017-09-19T08:00:00+02:00"
                        ]
                    },
                    "id": {
                        "$id": "/properties/special-events/items/properties/id",
                        "type": "integer",
                        "title": "The unique ID of the event.",
                        "examples": [
                            1
                        ]
                    },
                    "development": {
                        "$id": "/properties/special-events/items/properties/development",
                        "type": "boolean",
                        "title": "Set to true if the event is used in development. For example, on Android, these events are always shown. Should normally be false.",
                        "examples": [
                            false
                        ]
                    },
                    "in-app": {
                        "$id": "/properties/special-events/items/properties/in-app",
                        "type": "string",
                        "title": "Unique identifier for the type of event. Some apps may do special things with these. For example, the Android app uses this to identify the SKO event and opens the native app portion instead of going to the link.",
                        "examples": [
                            "be.ugent.zeus.hydra.special.sko"
                        ]
                    }
                }
            }
        }
    }
}