Skip to content

Commit

Permalink
fix:Invalid picker when unformatted fromSources supplied
Browse files Browse the repository at this point in the history
  • Loading branch information
sethk4783 committed Jun 17, 2024
1 parent c9a3662 commit b2767e5
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 33 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/deploy_beta.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: filestack-js-beta
on:
push:
branches: [ develop ]
branches: [ develop, hotfix/* ]
jobs:
build:
runs-on: ubuntu-latest
Expand Down
61 changes: 29 additions & 32 deletions src/schema/picker.schema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,38 +57,35 @@ export const PickerParamsSchema = {
},
fromSources: {
type: 'array',
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',
},
],
},
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',
],
},
],
},
container: {
format: 'HTMLContainer',
Expand Down

0 comments on commit b2767e5

Please sign in to comment.