{
    "$schema": "http://json-schema.org/draft-04/schema#",
    "type": "object",
    "properties": {
        "itemType": {
            "type": "string",
            "enum": [
                "application",
                "device",
                "flow",
                "dashboard",
                "organization"
            ]
        },
        "parentId": {
            "type": "string",
            "pattern": "^[A-Fa-f\\d]{24}$"
        },
        "items": {
            "type": "array",
            "items": {
                "type": "object",
                "properties": {
                    "id": {
                        "type": "string",
                        "pattern": "^[A-Fa-f\\d]{24}$"
                    },
                    "name": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 255
                    }
                }
            }
        }
    }
}