{
    "$schema": "http://json-schema.org/draft-07/schema#",
    "definitions": {
        "ThemeChange": {
            "properties": {
                "name": {
                    "description": "Name of the theme property",
                    "type": "string"
                },
                "owner": {
                    "description": "Theming function this parameter belongs to",
                    "type": "string"
                },
                "remove": {
                    "description": "Remove directive/component/property",
                    "type": "boolean"
                },
                "replaceWith": {
                    "description": "Replace original selector/property with new one",
                    "type": "string"
                },
                "type": {
                    "$ref": "#/definitions/ThemeType",
                    "description": "The type of the change: variable, function, mixin"
                }
            },
            "required": [
                "name",
                "type"
            ],
            "type": "object"
        },
        "ThemeType": {
            "enum": [
                "variable",
                "property",
                "function",
                "mixin"
            ],
            "type": "string"
        }
    },
    "properties": {
        "changes": {
            "description": "An array of changes to theme function properties",
            "items": {
                "$ref": "#/definitions/ThemeChange"
            },
            "type": "array"
        }
    },
    "required": [
        "changes"
    ],
    "type": "object"
}

