{
    "$schema": "http://json-schema.org/draft-04/schema#",
    "type": "array",
    "items": {
        "type": "object",
        "properties": {
            "id": {
                "type": "string"
            },
            "scores": {
                "type": "object",
                "properties": {
                    "red": {
                        "type": "number"
                    },
                    "blue": {
                        "type": "number"
                    },
                    "green": {
                        "type": "number"
                    }
                }
            },
            "victory_points": {
                "type": "object",
                "properties": {
                    "red": {
                        "type": "number"
                    },
                    "blue": {
                        "type": "number"
                    },
                    "green": {
                        "type": "number"
                    }
                }
            },
            "skirmishes": {
                "type": "array",
                "items": {
                    "type": "object",
                    "properties": {
                        "id": {
                            "type": "number"
                        },
                        "scores": {
                            "type": "object",
                            "properties": {
                                "red": {
                                    "type": "number"
                                },
                                "blue": {
                                    "type": "number"
                                },
                                "green": {
                                    "type": "number"
                                }
                            }
                        },
                        "map_scores": {
                            "type": "array",
                            "items": {
                                "type": "object",
                                "properties": {
                                    "type": {
                                        "type": "string"
                                    },
                                    "scores": {
                                        "type": "object",
                                        "properties": {
                                            "red": {
                                                "type": "number"
                                            },
                                            "blue": {
                                                "type": "number"
                                            },
                                            "green": {
                                                "type": "number"
                                            }
                                        }
                                    }
                                },
                                "required": [
                                    "type",
                                    "scores"
                                ]
                            }
                        }
                    },
                    "required": [
                        "id",
                        "scores",
                        "map_scores"
                    ]
                }
            },
            "maps": {
                "type": "array",
                "items": {
                    "type": "object",
                    "properties": {
                        "id": {
                            "type": "number"
                        },
                        "type": {
                            "type": "string"
                        },
                        "scores": {
                            "type": "object",
                            "properties": {
                                "red": {
                                    "type": "number"
                                },
                                "blue": {
                                    "type": "number"
                                },
                                "green": {
                                    "type": "number"
                                }
                            }
                        }
                    },
                    "required": [
                        "id",
                        "type",
                        "scores"
                    ]
                }
            }
        },
        "required": [
            "id",
            "scores",
            "victory_points",
            "skirmishes",
            "maps"
        ]
    },
    "properties": {},
    "additionalProperties": false
}