{
    "$schema": "http://json-schema.org/draft-04/schema#",
    "type": "object",
    "properties": {
        "filename": {
            "type": "string"
        },
        "layout": {
            "type": "string"
        },
        "data_bind": {
            "type": "object",
            "properties": {
                "table_name": {
                    "type": "string"
                },
                "query": {
                    "type": "object",
                    "properties": {
                        "action": {
                            "type": "string"
                        },
                        "params": {
                            "type": "string"
                        }
                    },
                    "required": [
                        "action",
                        "params"
                    ]
                },
                "required": {
                    "type": "boolean"
                }
            },
            "required": [
                "table_name",
                "query"
            ]
        },
        "body": {
            "type": "string"
        }
    },
    "required": [
        "filename",
        "body"
    ],
    "unique_attributes": [
        "filename"
    ]
}