{
    "title": "folder",
    "$schema": "http://json-schema.org/draft-04/schema#",
    "javaType": "com.sos.joc.model.tree.Tree",
    "type": "object",
    "properties": {
        "path": {
            "description": "absolute path of an object.",
            "type": "string",
            "pattern": "^(/|(/[^/\\\\<>?:\"|*]+)+)$",
            "maxLength": 255,
            "minLength": 1
        },
        "name": {
            "type": "string"
        },
        "deleted": {
            "type": "boolean"
        },
        "permitted": {
            "type": "boolean",
            "default": true
        },
        "repoControlled": {
            "description": "only for top level folder in the reponse in Inventory tree",
            "type": "boolean"
        },
        "lockedBy": {
            "type": "string"
        },
        "lockedSince": {
            "description": "Value is UTC timestamp in ISO 8601 YYYY-MM-DDThh:mm:ss.sZ or empty",
            "type": "string",
            "format": "date-time"
        },
        "folders": {
            "type": "array",
            "items": {
                "description": "tree-schema.json"
            }
        }
    },
    "required": [
        "path",
        "name"
    ]
}