{
    "$schema": "http://json-schema.org/draft-04/schema#",
    "type": "object",
    "properties": {
        "name": {
            "type": "string",
            "minLength": 1,
            "maxLength": 1024
        },
        "parentDirectory": {
            "type": "string",
            "maxLength": 1024
        },
        "type": {
            "type": "string",
            "enum": [
                "file",
                "directory"
            ]
        },
        "fileSize": {
            "type": "number"
        },
        "contentType": {
            "type": "string",
            "maxLength": 1024
        },
        "fileDimensions": {
            "type": "object",
            "properties": {
                "width": {
                    "type": "number"
                },
                "height": {
                    "type": "number"
                }
            }
        }
    }
}