{
    "$schema": "http://json-schema.org/draft-04/schema#",
    "type": "object",
    "title": "Wangscape terrain hypergraph schema",
    "description": "Specifies the clique memberships of each terrain in a Wangscape configuration.",
    "patternProperties": {
        "^[0-9a-zA-Z_-]+$": {
            "title": "Clique list schema",
            "description": "Lists all the cliques which contain a certain terrain.",
            "type": "array",
            "items": {
                "title": "Clique schema",
                "description": "Specifies a terrain clique as a list of terrain IDs.",
                "type": "array",
                "items": {
                    "title": "Terrain ID schema",
                    "description": "Specifies a terrain type.",
                    "type": "string",
                    "pattern": "^[0-9a-zA-Z_-]+$"
                },
                "minItems": 1
            }
        }
    }
}