From 6f38edf27c8c15a6f401ab7d1a62d3cb26f4d266 Mon Sep 17 00:00:00 2001 From: Garrett Michael Flynn Date: Wed, 13 Mar 2024 10:00:25 -0700 Subject: [PATCH] Update source-data.schema.ts --- schemas/source-data.schema.ts | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/schemas/source-data.schema.ts b/schemas/source-data.schema.ts index d30cc9194..2c5ac3bbe 100644 --- a/schemas/source-data.schema.ts +++ b/schemas/source-data.schema.ts @@ -5,14 +5,12 @@ export default function preprocessSourceDataSchema (schema) { // Abstract across different interfaces Object.entries(schema.properties ?? {}).forEach(([key, schema]: [string, any]) => { - if (key === 'VideoInterface' || key === 'AudioInterface') { - if (schema.properties.file_paths) { - Object.assign(schema.properties.file_paths, { - items: { type: 'string' }, - description: 'Only one file supported at this time. Multiple file support coming soon.', - maxItems: 1, - }) - } + if (schema.properties.file_paths) { + Object.assign(schema.properties.file_paths, { + items: { type: 'string' }, + description: 'Only one file supported at this time. Multiple file support coming soon.', + maxItems: 1, + }) } // Do not show steps