{
    "$schema": "http://json-schema.org/draft-04/schema#",
    "type": "object",
    "title": "Type",
    "definitions": {
        "translations": {
            "type": "object",
            "properties": {
                "cz": {
                    "type": "string"
                },
                "dk": {
                    "type": "string"
                },
                "fr": {
                    "type": "string"
                },
                "de": {
                    "type": "string"
                },
                "gr": {
                    "type": "string"
                },
                "it": {
                    "type": "string"
                },
                "pl": {
                    "type": "string"
                },
                "tr": {
                    "type": "string"
                },
                "en": {
                    "type": "string"
                },
                "jp": {
                    "type": "string"
                },
                "es": {
                    "type": "string"
                }
            },
            "required": [
                "en",
                "de"
            ],
            "additionalProperties": false
        }
    },
    "properties": {
        "names": {
            "$ref": "#/definitions/translations"
        },
        "color": {
            "description": "Hex color",
            "type": "string",
            "pattern": "^#[A-Fa-f0-9]{6}$"
        },
        "effectivness": {
            "type": "object",
            "patternProperties": {
                "Normal|Fighting|Flying|Poison|Ground|Rock|Bug|Ghost|Steel|Fire|Water|Grass|Electric|Psychic|Ice|Dragon|Dark|Fairy": {
                    "type": "number",
                    "minimum": 0,
                    "maximum": 2
                }
            },
            "required": [
                "Normal",
                "Fighting",
                "Flying",
                "Poison",
                "Ground",
                "Rock",
                "Bug",
                "Ghost",
                "Steel",
                "Fire",
                "Water",
                "Grass",
                "Electric",
                "Psychic",
                "Ice",
                "Dragon",
                "Dark",
                "Fairy"
            ],
            "additionalProperties": false
        }
    },
    "required": [
        "names",
        "effectivness",
        "color"
    ],
    "additionalProperties": false
}