From 6be1411838a7914119f064b72288c18e21c189b6 Mon Sep 17 00:00:00 2001 From: Tobias Koppers Date: Sun, 4 Nov 2018 10:41:12 +0100 Subject: [PATCH] move schema into definitions --- schemas/plugins/ProgressPlugin.json | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) 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"