{
    "$schema": "http://json-schema.org/draft-04/schema#",
    "title": "MapChartMovieUpdate",
    "description": "The data contained in a MapChart Movie update object",
    "type": "object",
    "properties": {
        "inplace": {
            "type": "array",
            "items": {
                "type": "object",
                "properties": {
                    "position": {
                        "type": "object",
                        "properties": {
                            "series": {
                                "type": "integer",
                                "minimum": 0
                            },
                            "index": {
                                "type": "integer",
                                "minimum": 0
                            },
                            "id": {
                                "type": "string"
                            }
                        },
                        "oneOf": [
                            {
                                "required": [
                                    "series",
                                    "index"
                                ]
                            },
                            {
                                "required": [
                                    "id"
                                ]
                            }
                        ]
                    },
                    "data": {
                        "type": "object",
                        "properties": {
                            "x": {
                                "type": "number"
                            },
                            "y": {
                                "type": "number"
                            }
                        },
                        "required": [
                            "x",
                            "y"
                        ]
                    }
                },
                "required": [
                    "position",
                    "data"
                ]
            }
        },
        "stream": {
            "type": "array",
            "items": {
                "type": "object",
                "properties": {
                    "series": {
                        "type": "integer",
                        "minimum": 0
                    },
                    "data": {
                        "type": "object",
                        "properties": {
                            "x": {
                                "type": "number"
                            },
                            "y": {
                                "type": "number"
                            },
                            "id": {
                                "type": "string"
                            }
                        },
                        "required": [
                            "x",
                            "y"
                        ]
                    }
                }
            }
        },
        "delete": {
            "type": "array",
            "items": {
                "type": "object",
                "properties": {
                    "series": {
                        "type": "integer",
                        "minimum": 0
                    },
                    "index": {
                        "type": "integer",
                        "minimum": 0
                    },
                    "id": {
                        "type": "string"
                    }
                },
                "oneOf": [
                    {
                        "required": [
                            "series",
                            "index"
                        ]
                    },
                    {
                        "required": [
                            "id"
                        ]
                    }
                ]
            }
        }
    }
}