{
    "$schema": "http://json-schema.org/draft-07/schema#",
    "definitions": {
        "ThemeChange": {
            "properties": {
                "add": {
                    "description": "Add the property with this value, as Sass source, to calls of the owner that do not pass it",
                    "type": "string"
                },
                "exactOwner": {
                    "description": "Match only the owner's exact name. By default, any member whose name ends with the owner matches",
                    "type": "boolean"
                },
                "name": {
                    "description": "Name of the theme property",
                    "type": "string"
                },
                "owner": {
                    "description": "Theming function this parameter belongs to",
                    "type": "string"
                },
                "ownerType": {
                    "description": "Apply the property change only where the owner is called as a function or included as a mixin",
                    "enum": [
                        "function",
                        "mixin"
                    ],
                    "type": "string"
                },
                "parameterIndex": {
                    "description": "The property's 1-based index in the owner's parameters. It only detects calls that pass the property by position: add leaves them alone, and remove reports them for manual review",
                    "type": "number"
                },
                "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"
}
