{
    "title": "treeView",
    "id": "schemas/tree/treeView",
    "$schema": "http://json-schema.org/draft-04/schema#",
    "description": "collections of JobScheduler objects besides folder tree structure.",
    "javaType": "com.sos.joc.model.tree.TreeView",
    "type": "object",
    "required": [
        "deliveryDate",
        "folders"
    ],
    "properties": {
        "deliveryDate": {
            "id": "schemas/common/deliveryDate",
            "description": "Current date of the JOC server/REST service. Value is UTC timestamp in ISO 8601 YYYY-MM-DDThh:mm:ss.sZ",
            "type": "string",
            "format": "date-time"
        },
        "folders": {
            "type": "array",
            "items": {
                "id": "schemas/tree/tree",
                "javaType": "com.sos.joc.model.tree.Tree",
                "type": "object",
                "properties": {
                    "path": {
                        "id": "schemas/common/path",
                        "description": "absolute path based on live folder of a JobScheduler object.",
                        "type": "string",
                        "pattern": "/([^/]+/)*[^/]+"
                    },
                    "name": {
                        "type": "string"
                    },
                    "deleted": {
                        "type": "boolean"
                    },
                    "lockedBy": {
                        "type": "string"
                    },
                    "lockedSince": {
                        "id": "schemas/common/timestamp",
                        "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"
                ]
            }
        }
    }
}