{
    "$schema": "http://json-schema.org/draft-04/schema#",
    "type": "object",
    "additionalProperties": false,
    "properties": {
        "startdate": {
            "description": "Start date for the export, use pattern yyyy-MM-dd",
            "type": "string"
        },
        "enddate": {
            "description": "End date for the export, use pattern yyyy-MM-dd",
            "type": "string"
        },
        "format": {
            "description": "Export format",
            "type": "string",
            "enum": [
                "PDF",
                "ICAL"
            ]
        },
        "view": {
            "description": "View Rendering",
            "type": "string",
            "enum": [
                "DAY",
                "WEEK",
                "LIST",
                "NA"
            ]
        },
        "resourceIds": {
            "description": "Optional: List of resource ids if the user want to restrict export",
            "type": "array",
            "items": {
                "type": "integer"
            },
            "additionalProperties": false,
            "minItems": 0
        }
    },
    "required": [
        "startdate",
        "enddate",
        "format",
        "view"
    ]
}