diff --git a/src/schema/picker.schema.ts b/src/schema/picker.schema.ts index 34dd60bc..e2b96bfa 100644 --- a/src/schema/picker.schema.ts +++ b/src/schema/picker.schema.ts @@ -57,35 +57,38 @@ export const PickerParamsSchema = { }, fromSources: { type: 'array', - items: [ - { - type: ['string', 'object'], - additionalProperties: false, - enum: [ - 'local_file_system', - 'url', - 'imagesearch', - 'facebook', - 'instagram', - 'googledrive', - 'unsplash', - 'dropbox', - 'webcam', - 'video', - 'audio', - 'box', - 'github', - 'gmail', - 'googlephotos', - 'onedrive', - 'onedriveforbusiness', - 'clouddrive', - 'googlephotos', - 'customsource', - 'tint', - ], - }, - ], + items: { + anyOf: [ + { + type: 'string', + enum: [ + 'local_file_system', + 'url', + 'imagesearch', + 'facebook', + 'instagram', + 'googledrive', + 'unsplash', + 'dropbox', + 'webcam', + 'video', + 'audio', + 'box', + 'github', + 'gmail', + 'googlephotos', + 'onedrive', + 'onedriveforbusiness', + 'clouddrive', + 'customsource', + 'tint', + ], + }, + { + type: 'object', + }, + ], + }, }, container: { format: 'HTMLContainer',