Skip to content

Commit

Permalink
Changing the sequence in fromSource fixed (#554)
Browse files Browse the repository at this point in the history
* error fixed when changing the sequence fromSource

* Error fixes for declaring the custom source at first place in fromSources array (FS-9995)

* FS-9995 code formatting issue in fromSources array
  • Loading branch information
arifhussainfilestack authored Mar 25, 2024
1 parent c65513f commit 3cce93b
Showing 1 changed file with 32 additions and 29 deletions.
61 changes: 32 additions & 29 deletions src/schema/picker.schema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down

0 comments on commit 3cce93b

Please sign in to comment.