{
    "$schema": "http://json-schema.org/draft-04/schema#",
    "type": "array",
    "items": {
        "type": "object",
        "properties": {
            "id": {
                "type": "string"
            },
            "name": {
                "type": "string"
            },
            "start": {
                "type": "string"
            },
            "end": {
                "type": "string"
            },
            "active": {
                "type": "boolean"
            },
            "divisions": {
                "type": "array",
                "items": {
                    "type": "object",
                    "properties": {
                        "name": {
                            "type": "string"
                        },
                        "flags": {
                            "type": "array",
                            "items": {
                                "type": "string"
                            }
                        },
                        "large_icon": {
                            "type": "string"
                        },
                        "small_icon": {
                            "type": "string"
                        },
                        "pip_icon": {
                            "type": "string"
                        },
                        "tiers": {
                            "type": "array",
                            "items": {
                                "type": "object",
                                "properties": {
                                    "points": {
                                        "type": "number"
                                    }
                                },
                                "required": [
                                    "points"
                                ]
                            }
                        }
                    },
                    "required": [
                        "name",
                        "flags",
                        "large_icon",
                        "small_icon",
                        "pip_icon",
                        "tiers"
                    ]
                }
            },
            "leaderboards": {
                "type": "object",
                "properties": {
                    "legendary": {
                        "type": "object",
                        "properties": {
                            "settings": {
                                "type": "object",
                                "properties": {
                                    "name": {
                                        "type": "string"
                                    },
                                    "duration": {
                                        "type": "null"
                                    },
                                    "scoring": {
                                        "type": "string"
                                    },
                                    "tiers": {
                                        "type": "array",
                                        "items": {
                                            "type": "object",
                                            "properties": {
                                                "range": {
                                                    "type": "array",
                                                    "items": {
                                                        "type": "number"
                                                    }
                                                }
                                            },
                                            "required": [
                                                "range"
                                            ]
                                        }
                                    }
                                }
                            },
                            "scorings": {
                                "type": "array",
                                "items": {
                                    "type": "object",
                                    "properties": {
                                        "id": {
                                            "type": "string"
                                        },
                                        "type": {
                                            "type": "string"
                                        },
                                        "description": {
                                            "type": "string"
                                        },
                                        "name": {
                                            "type": "string"
                                        },
                                        "ordering": {
                                            "type": "string"
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "guild": {
                        "type": "object",
                        "properties": {
                            "settings": {
                                "type": "object",
                                "properties": {
                                    "name": {
                                        "type": "string"
                                    },
                                    "duration": {
                                        "type": "null"
                                    },
                                    "scoring": {
                                        "type": "string"
                                    },
                                    "tiers": {
                                        "type": "array",
                                        "items": {
                                            "type": "object",
                                            "properties": {
                                                "color": {
                                                    "type": "string"
                                                },
                                                "type": {
                                                    "type": "string"
                                                },
                                                "name": {
                                                    "type": "string"
                                                },
                                                "range": {
                                                    "type": "array",
                                                    "items": {
                                                        "type": "number"
                                                    }
                                                }
                                            },
                                            "required": [
                                                "color",
                                                "type",
                                                "name",
                                                "range"
                                            ]
                                        }
                                    }
                                }
                            },
                            "scorings": {
                                "type": "array",
                                "items": {
                                    "type": "object",
                                    "properties": {
                                        "id": {
                                            "type": "string"
                                        },
                                        "type": {
                                            "type": "string"
                                        },
                                        "description": {
                                            "type": "string"
                                        },
                                        "name": {
                                            "type": "string"
                                        },
                                        "ordering": {
                                            "type": "string"
                                        }
                                    },
                                    "required": [
                                        "id",
                                        "type",
                                        "description",
                                        "name",
                                        "ordering"
                                    ]
                                }
                            }
                        }
                    }
                }
            },
            "ranks": {
                "type": "array",
                "items": {
                    "type": "object",
                    "properties": {
                        "name": {
                            "type": "string"
                        },
                        "description": {
                            "type": "string"
                        },
                        "icon": {
                            "type": "string"
                        },
                        "overlay": {
                            "type": "string"
                        },
                        "overlay_small": {
                            "type": "string"
                        },
                        "tiers": {
                            "type": "array",
                            "items": {
                                "type": "object",
                                "properties": {
                                    "rating": {
                                        "type": "number"
                                    }
                                },
                                "required": [
                                    "rating"
                                ]
                            }
                        }
                    },
                    "required": [
                        "name",
                        "description",
                        "icon",
                        "overlay",
                        "overlay_small",
                        "tiers"
                    ]
                }
            }
        },
        "required": [
            "id",
            "name",
            "start",
            "end",
            "active",
            "divisions",
            "leaderboards"
        ]
    },
    "properties": {},
    "additionalProperties": false
}