{
    "$schema": "http://json-schema.org/draft-04/schema#",
    "type": "array",
    "items": {
        "type": "object",
        "properties": {
            "id": {
                "type": "string"
            },
            "name": {
                "type": "string"
            },
            "icon": {
                "type": "string"
            },
            "icon_big": {
                "type": "string"
            },
            "specializations": {
                "type": "array",
                "items": {
                    "type": "number"
                }
            },
            "weapons": {
                "type": "object",
                "properties": {
                    "Dagger": {
                        "type": "object",
                        "properties": {
                            "flags": {
                                "type": "array",
                                "items": {
                                    "type": "string"
                                }
                            },
                            "skills": {
                                "type": "array",
                                "items": {
                                    "type": "object",
                                    "properties": {
                                        "id": {
                                            "type": "number"
                                        },
                                        "slot": {
                                            "type": "string"
                                        },
                                        "offhand": {
                                            "type": "string"
                                        }
                                    },
                                    "required": [
                                        "id",
                                        "slot"
                                    ]
                                }
                            }
                        }
                    },
                    "Spear": {
                        "type": "object",
                        "properties": {
                            "flags": {
                                "type": "array",
                                "items": {
                                    "type": "string"
                                }
                            },
                            "skills": {
                                "type": "array",
                                "items": {
                                    "type": "object",
                                    "properties": {
                                        "id": {
                                            "type": "number"
                                        },
                                        "slot": {
                                            "type": "string"
                                        }
                                    },
                                    "required": [
                                        "id",
                                        "slot"
                                    ]
                                }
                            }
                        }
                    },
                    "Pistol": {
                        "type": "object",
                        "properties": {
                            "flags": {
                                "type": "array",
                                "items": {
                                    "type": "string"
                                }
                            },
                            "skills": {
                                "type": "array",
                                "items": {
                                    "type": "object",
                                    "properties": {
                                        "id": {
                                            "type": "number"
                                        },
                                        "slot": {
                                            "type": "string"
                                        },
                                        "offhand": {
                                            "type": "string"
                                        }
                                    },
                                    "required": [
                                        "id",
                                        "slot"
                                    ]
                                }
                            }
                        }
                    },
                    "Rifle": {
                        "type": "object",
                        "properties": {
                            "specialization": {
                                "type": "number"
                            },
                            "flags": {
                                "type": "array",
                                "items": {
                                    "type": "string"
                                }
                            },
                            "skills": {
                                "type": "array",
                                "items": {
                                    "type": "object",
                                    "properties": {
                                        "id": {
                                            "type": "number"
                                        },
                                        "slot": {
                                            "type": "string"
                                        }
                                    },
                                    "required": [
                                        "id",
                                        "slot"
                                    ]
                                }
                            }
                        }
                    },
                    "Shortbow": {
                        "type": "object",
                        "properties": {
                            "flags": {
                                "type": "array",
                                "items": {
                                    "type": "string"
                                }
                            },
                            "skills": {
                                "type": "array",
                                "items": {
                                    "type": "object",
                                    "properties": {
                                        "id": {
                                            "type": "number"
                                        },
                                        "slot": {
                                            "type": "string"
                                        }
                                    },
                                    "required": [
                                        "id",
                                        "slot"
                                    ]
                                }
                            }
                        }
                    },
                    "Speargun": {
                        "type": "object",
                        "properties": {
                            "flags": {
                                "type": "array",
                                "items": {
                                    "type": "string"
                                }
                            },
                            "skills": {
                                "type": "array",
                                "items": {
                                    "type": "object",
                                    "properties": {
                                        "id": {
                                            "type": "number"
                                        },
                                        "slot": {
                                            "type": "string"
                                        }
                                    },
                                    "required": [
                                        "id",
                                        "slot"
                                    ]
                                }
                            }
                        }
                    },
                    "Staff": {
                        "type": "object",
                        "properties": {
                            "specialization": {
                                "type": "number"
                            },
                            "flags": {
                                "type": "array",
                                "items": {
                                    "type": "string"
                                }
                            },
                            "skills": {
                                "type": "array",
                                "items": {
                                    "type": "object",
                                    "properties": {
                                        "id": {
                                            "type": "number"
                                        },
                                        "slot": {
                                            "type": "string"
                                        }
                                    },
                                    "required": [
                                        "id",
                                        "slot"
                                    ]
                                }
                            }
                        }
                    },
                    "Sword": {
                        "type": "object",
                        "properties": {
                            "flags": {
                                "type": "array",
                                "items": {
                                    "type": "string"
                                }
                            },
                            "skills": {
                                "type": "array",
                                "items": {
                                    "type": "object",
                                    "properties": {
                                        "id": {
                                            "type": "number"
                                        },
                                        "slot": {
                                            "type": "string"
                                        },
                                        "offhand": {
                                            "type": "string"
                                        }
                                    },
                                    "required": [
                                        "id",
                                        "slot"
                                    ]
                                }
                            }
                        }
                    }
                }
            },
            "flags": {
                "type": "array",
                "items": {}
            },
            "skills": {
                "type": "array",
                "items": {
                    "type": "object",
                    "properties": {
                        "id": {
                            "type": "number"
                        },
                        "slot": {
                            "type": "string"
                        },
                        "type": {
                            "type": "string"
                        },
                        "source": {
                            "type": "string"
                        }
                    },
                    "required": [
                        "id",
                        "slot",
                        "type"
                    ]
                }
            },
            "training": {
                "type": "array",
                "items": {
                    "type": "object",
                    "properties": {
                        "id": {
                            "type": "number"
                        },
                        "category": {
                            "type": "string"
                        },
                        "name": {
                            "type": "string"
                        },
                        "track": {
                            "type": "array",
                            "items": {
                                "type": "object",
                                "properties": {
                                    "cost": {
                                        "type": "number"
                                    },
                                    "type": {
                                        "type": "string"
                                    },
                                    "trait_id": {
                                        "type": "number"
                                    },
                                    "skill_id": {
                                        "type": "number"
                                    }
                                },
                                "required": [
                                    "cost",
                                    "type"
                                ]
                            }
                        }
                    },
                    "required": [
                        "id",
                        "category",
                        "name",
                        "track"
                    ]
                }
            }
        },
        "required": [
            "id",
            "name",
            "icon",
            "icon_big",
            "specializations",
            "weapons",
            "flags",
            "skills",
            "training"
        ]
    },
    "properties": {},
    "additionalProperties": false
}