{
    "$schema": "http://json-schema.org/draft-04/schema#",
    "type": "array",
    "title": "Wangscape tiles schema",
    "description": "Lists the contents and location of every tile output by a Wangscape project.",
    "items": {
        "type": "object",
        "title": "Tile schema",
        "description": "Specifies the contents and location of a tile output by Wangscape.",
        "properties": {
            "corners": {
                "title": "Tile corners schema",
                "description": "Specifies the IDs of the terrain types at the corners of the tile.",
                "type": "array",
                "items": {
                    "title": "Terrain ID schema",
                    "description": "Specifies a terrain type.",
                    "type": "string",
                    "pattern": "^[0-9a-zA-Z_-]+$"
                }
            },
            "filename": {
                "title": "Tile filename schema",
                "description": "Specifies the filename of the tileset containing the tile.",
                "type": "string"
            },
            "x": {
                "title": "Tile x offset schema",
                "description": "Specifies the horizontal offset, in pixels, of the tile within the tileset.",
                "type": "integer",
                "minimum": 0
            },
            "y": {
                "title": "Tile y offset schema",
                "description": "Specifies the vertical offset, in pixels, of the tile within the tileset",
                "type": "integer",
                "minimum": 0
            }
        },
        "required": [
            "corners",
            "filename",
            "x",
            "y"
        ]
    }
}