Skip to content

Commit 58bbe47

Browse files
committed
Update EnumSchema with string array default for multi-select enums type. See [SEP-1330](modelcontextprotocol/modelcontextprotocol#1330)
* In types.ts - Set UntitledMultiSelectEnumSchema and TitledMultiSelectEnumSchema - set default to z.array(z.string()).optional()
1 parent c23c80d commit 58bbe47

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/types.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1273,7 +1273,7 @@ export const UntitledMultiSelectEnumSchema = z.object({
12731273
type: z.literal('string'),
12741274
enum: z.array(z.string())
12751275
}),
1276-
default: z.string().optional()
1276+
default: z.array(z.string()).optional()
12771277
});
12781278

12791279
/**
@@ -1293,7 +1293,7 @@ export const TitledMultiSelectEnumSchema = z.object({
12931293
})
12941294
)
12951295
}),
1296-
default: z.string().optional()
1296+
default: z.array(z.string()).optional()
12971297
});
12981298

12991299
/**

0 commit comments

Comments
 (0)