diff --git a/schemas/plugins/ProgressPlugin.json b/schemas/plugins/ProgressPlugin.json index fa38fc0d08f..e3847c7e134 100644 --- a/schemas/plugins/ProgressPlugin.json +++ b/schemas/plugins/ProgressPlugin.json @@ -4,12 +4,8 @@ "description": "Function that executes for every progress step", "instanceof": "Function", "tsType": "((percentage: number, msg: string, ...args: string[]) => void)" - } - }, - "title": "ProgressPluginArgument", - "oneOf": [ - { - "title": "ProgressPluginOptions", + }, + "ProgressPluginOptions": { "type": "object", "additionalProperties": false, "properties": { @@ -42,6 +38,12 @@ "enum": [true, false, null] } } + } + }, + "title": "ProgressPluginArgument", + "oneOf": [ + { + "$ref": "#/definitions/ProgressPluginOptions" }, { "$ref": "#/definitions/HandlerFunction"