Skip to content

Commit ab33dea

Browse files
[FS-9995] Changing the sequence in fromSource fixed (#561)
* Error fixes for declaring the custom source at first place in fromSources array (FS-9995) Co-authored-by: Arif Hussain <arif.hussain@filestack.com>
1 parent ece230c commit ab33dea

File tree

1 file changed

+32
-29
lines changed

1 file changed

+32
-29
lines changed

src/schema/picker.schema.ts

Lines changed: 32 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -57,35 +57,38 @@ export const PickerParamsSchema = {
5757
},
5858
fromSources: {
5959
type: 'array',
60-
items: [
61-
{
62-
type: ['string', 'object'],
63-
additionalProperties: false,
64-
enum: [
65-
'local_file_system',
66-
'url',
67-
'imagesearch',
68-
'facebook',
69-
'instagram',
70-
'googledrive',
71-
'unsplash',
72-
'dropbox',
73-
'webcam',
74-
'video',
75-
'audio',
76-
'box',
77-
'github',
78-
'gmail',
79-
'googlephotos',
80-
'onedrive',
81-
'onedriveforbusiness',
82-
'clouddrive',
83-
'googlephotos',
84-
'customsource',
85-
'tint',
86-
],
87-
},
88-
],
60+
items: {
61+
anyOf: [
62+
{
63+
type: 'string',
64+
enum: [
65+
'local_file_system',
66+
'url',
67+
'imagesearch',
68+
'facebook',
69+
'instagram',
70+
'googledrive',
71+
'unsplash',
72+
'dropbox',
73+
'webcam',
74+
'video',
75+
'audio',
76+
'box',
77+
'github',
78+
'gmail',
79+
'googlephotos',
80+
'onedrive',
81+
'onedriveforbusiness',
82+
'clouddrive',
83+
'customsource',
84+
'tint',
85+
],
86+
},
87+
{
88+
type: 'object',
89+
},
90+
],
91+
},
8992
},
9093
container: {
9194
format: 'HTMLContainer',

0 commit comments

Comments
 (0)