fix: validate image order and alt text updates
Quality / test (push) Canceled after 0s

This commit is contained in:
2026-09-11 00:18:11 -04:00
parent 0e81fc4022
commit cce395baf6
11 changed files with 169 additions and 14 deletions
+8
View File
@@ -14,3 +14,11 @@ export const createInventoryImageSchema = z.object({
export const moveInventoryImageSchema = z.object({
direction: z.enum(['up', 'down']),
}).strict();
export const updateImageOrderSchema = z.object({
sortOrder: z.int().min(0).max(2147483647),
}).strict();
export const updateImageAltTextSchema = z.object({
altText: z.string().trim().max(1000).nullable(),
}).strict();