{
    "description": "The schema is made for RenderTheFuck stack diagram.",
    "properties": {
        "layers": {
            "items": {
                "properties": {
                    "items": {
                        "items": {
                            "properties": {
                                "name": {
                                    "minLength": 1,
                                    "type": "string"
                                },
                                "parent": {
                                    "type": "number"
                                }
                            },
                            "required": [
                                "name"
                            ],
                            "type": "object"
                        },
                        "type": "array"
                    }
                },
                "required": [
                    "items"
                ],
                "type": "object"
            },
            "type": "array"
        },
        "settings": {
            "properties": {
                "title": {
                    "minLength": 1,
                    "type": "string"
                }
            },
            "required": [
                "title"
            ],
            "type": "object"
        },
        "wtf": {
            "enum": [
                "stack"
            ],
            "type": "string"
        }
    },
    "required": [
        "wtf",
        "settings",
        "layers"
    ],
    "type": "object"
}