{
    "$schema": "http://json-schema.org/draft-04/schema#",
    "title": "TableInPlaceUpdate",
    "description": "The data contained in a Table InPlace update object",
    "type": "object",
    "properties": {
        "inplace": {
            "type": "array",
            "items": {
                "type": "object",
                "properties": {
                    "position": {
                        "type": "object",
                        "properties": {
                            "x": {
                                "type": "integer",
                                "minimum": 0
                            },
                            "y": {
                                "type": "integer",
                                "minimum": 0
                            }
                        },
                        "required": [
                            "x",
                            "y"
                        ]
                    },
                    "data": {
                        "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": [
                    "position",
                    "data"
                ]
            }
        }
    }
}