diff --git a/src/lib/code-sample/schema.ts b/src/lib/code-sample/schema.ts index 4a48553..6819b19 100644 --- a/src/lib/code-sample/schema.ts +++ b/src/lib/code-sample/schema.ts @@ -27,7 +27,7 @@ export const CodeSampleDefinitionSchema = z.object({ /^[a-z_/]+$/, 'Can only contain the lowercase letters a-z, underscores, and forward slashes.', ), - parameters: z.record(z.string().min(1), JsonSchema), + parameters: z.record(z.string().min(1), JsonSchema).optional().default({}), }), response: z.object({ body: z.record(z.string().min(1), JsonSchema).nullable(),