Refactor metadata field in GlideCanvasItem schema to be a JSON string

- Changed metadata from a record of strings to a nullable JSON string
- Updated schema to reflect the new data type for metadata
This commit is contained in:
Nikita
2025-12-25 08:14:29 -08:00
parent 9c90b7db8d
commit 271840ba34

View File

@@ -113,7 +113,7 @@ export const GlideCanvasItem = z.object({
imageData: z.string().nullable(), // Base64 encoded image
position: z.object({ x: z.number(), y: z.number() }).nullable(),
createdAt: z.number(),
metadata: z.record(z.string(), z.string()).nullable(),
metadata: z.string().nullable(), // JSON string for metadata
})
export type GlideCanvasItem = z.infer<typeof GlideCanvasItem>