{
    "$schema": "http://json-schema.org/draft-04/schema#",
    "title": "TableData",
    "description": "The data contained in a Table",
    "type": "object",
    "properties": {
        "headers": {
            "type": "array",
            "items": {
                "type": "string"
            }
        },
        "datasets": {
            "type": "array",
            "items": {
                "type": "object",
                "properties": {
                    "row": {
                        "type": "array",
                        "items": {
                            "type": "object",
                            "properties": {
                                "color": {
                                    "type": "string",
                                    "pattern": "^#[0-9a-fA-F]{6}$"
                                },
                                "background": {
                                    "type": "string",
                                    "pattern": "^#[0-9a-fA-F]{6}$"
                                },
                                "value": {
                                    "type": "string"
                                }
                            },
                            "required": [
                                "value"
                            ]
                        }
                    }
                }
            }
        }
    },
    "required": [
        "headers",
        "datasets"
    ]
}