Merge pull request #109 from open-reception/108-api-should-allow-pausingunpausing-a-channel

Names in channel update schema should be an optional property
This commit is contained in:
Karl Ludwig Weise
2025-10-15 18:15:49 +02:00
committed by GitHub
+1 -1
View File
@@ -29,7 +29,7 @@ const channelCreationSchema = z.object({
});
const channelUpdateSchema = z.object({
names: z.partialRecord(z.enum(supportedLocales), z.string().min(1).max(100)),
names: z.partialRecord(z.enum(supportedLocales), z.string().min(1).max(100)).optional(),
color: z.string().optional(),
descriptions: z.partialRecord(z.enum(supportedLocales), z.string().min(1)).optional(),
isPublic: z.boolean().optional(),