{
    "$id": "urn:williamdes:mariadb-mysql-kbs:slimdata",
    "$schema": "http://json-schema.org/draft-07/schema#",
    "type": "object",
    "definitions": {},
    "properties": {
        "vars": {
            "type": "object",
            "patternProperties": {
                "^([a-zA-Z_]+)": {
                    "type": "object",
                    "properties": {
                        "name": {
                            "type": "string",
                            "minLength": 2
                        },
                        "scope": {
                            "type": "array",
                            "additionalItems": false,
                            "items": {
                                "type": "string",
                                "enum": [
                                    "global",
                                    "session",
                                    "connection"
                                ]
                            }
                        },
                        "type": {
                            "type": "string"
                        },
                        "ids": {
                            "type": "array",
                            "additionalItems": false,
                            "items": {
                                "$ref": "urn:williamdes:mariadb-mysql-kbs:linked-key-var-url"
                            }
                        },
                        "cli": {
                            "type": "string",
                            "minLength": 2
                        },
                        "default": {
                            "type": "string",
                            "minLength": 0
                        },
                        "dynamic": {
                            "type": "boolean"
                        },
                        "range": {
                            "type": "object",
                            "additionalProperties": false,
                            "properties": {
                                "from": {
                                    "type": "number"
                                },
                                "to": {
                                    "oneOf": [
                                        {
                                            "type": "number"
                                        },
                                        {
                                            "type": "string",
                                            "enum": ["upwards"]
                                        }
                                    ]
                                }
                            }
                        },
                        "validValues": {
                            "type": "array",
                            "additionalItems": false,
                            "items": {
                                "type": [ "string", "number"]
                            }
                        }
                    },
                    "additionalProperties": false
                }
            },
            "additionalProperties": false
        },
        "version": {
            "$ref": "urn:williamdes:mariadb-mysql-kbs:doc-version"
        },
        "urls": {
            "type": "array",
            "additionalItems": false,
            "items": {
                "$ref": "urn:williamdes:mariadb-mysql-kbs:doc-url"
            }
        },
        "types": {
            "$ref": "urn:williamdes:mariadb-mysql-kbs:linked-key-var"
        },
        "varTypes": {
            "$ref": "urn:williamdes:mariadb-mysql-kbs:linked-key-var"
        }
    },
    "additionalProperties": false
}
