mirror of
https://github.com/linsa-io/linsa.git
synced 2026-01-11 20:00:23 +01:00
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:
@@ -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>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user