{
    "$schema": "http://json-schema.org/draft-04/schema#",
    "type": "object",
    "title": "Generation",
    "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": {
        "number": {
            "type": "integer",
            "minimum": 1,
            "maximum": 7
        },
        "names": {
            "$ref": "#/definitions/translations"
        },
        "dex_name": {
            "type": "string"
        },
        "games": {
            "type": "array",
            "minItems": 1,
            "maxItems": 7,
            "items": {
                "$ref": "#/definitions/translations"
            }
        }
    },
    "required": [
        "number",
        "names",
        "dex_name",
        "games"
    ],
    "additionalProperties": false
}