From 0014a96ac3dff5583153b34cc63385e2f718dd6c Mon Sep 17 00:00:00 2001 From: Matteo Campinoti Date: Thu, 20 Jun 2024 09:35:23 +0200 Subject: [PATCH] fileformats.schema - convert.converter.outputs is not required for copy converter --- fileformats.schema.json | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) diff --git a/fileformats.schema.json b/fileformats.schema.json index 0d7a337..3655229 100644 --- a/fileformats.schema.json +++ b/fileformats.schema.json @@ -234,9 +234,24 @@ "type": "object", "required": [ "converter", - "converter_type", - "outputs" + "converter_type" ], + "if": { + "properties": { + "converter": { + "not": { + "enum": [ + "copy" + ] + } + } + } + }, + "then": { + "required": [ + "outputs" + ] + }, "properties": { "converter": { "description": "The converter tool to use.",