Skip to content

Commit cf89ee0

Browse files
feat(picker): support callback for tags (#461)
1 parent c676b48 commit cf89ee0

File tree

1 file changed

+17
-7
lines changed

1 file changed

+17
-7
lines changed

src/schema/picker.schema.ts

Lines changed: 17 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -79,12 +79,6 @@ export const PickerParamsSchema = {
7979
},
8080
],
8181
},
82-
tags: {
83-
type: 'object',
84-
additionalProperties: {
85-
type: 'string',
86-
},
87-
},
8882
container: {
8983
format: 'HTMLContainer',
9084
},
@@ -416,7 +410,23 @@ export const PickerParamsSchema = {
416410
uploadConfig: {
417411
type: 'object',
418412
additionalProperties: false,
419-
properties: UploadParamsSchema.properties,// manual import upload definitions
413+
properties: {
414+
// manual import upload definitions
415+
...UploadParamsSchema.properties,
416+
tags: {
417+
type: 'object',
418+
additionalProperties: {
419+
anyOf: [
420+
{
421+
type: 'string',
422+
},
423+
{
424+
format: 'callback',
425+
},
426+
],
427+
},
428+
},
429+
},
420430
},
421431
useSentryBreadcrumbs: {
422432
type: 'boolean',

0 commit comments

Comments
 (0)