From 36888a4aaa12fb3df2378a3ed9eb707643e2dcca Mon Sep 17 00:00:00 2001 From: AloeSapling Date: Sat, 16 Aug 2025 21:04:10 +0200 Subject: [PATCH] Added BlueMarble JSON schema --- types/schemas.ts | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/types/schemas.ts b/types/schemas.ts index 0a363a8..fb9e855 100644 --- a/types/schemas.ts +++ b/types/schemas.ts @@ -55,3 +55,22 @@ export const CharityJSON = z.object({ ), }); +export const BlueMarbleJSON = z.object({ + whoami: z.string(), + scriptVersion: z.string().refine((version) => version.match("^0|([1-9]\d*)([.](0|([1-9]\d*))){2}$")), + schemaVersion: z.string().refine((version) => version.match("^0|([1-9]\d*)([.](0|([1-9]\d*))){2}$")), + templates: z.array(z.object({ + name: z.string().optional(), + coords: z.array(z.number()), + idSort: z.number(), + idUser: z.string(), + enabled: z.boolean().optional(), + urlLink: z.string().optional(), + urlType: z.string().optional(), + file: z.string().optional(), + tiles: z.array(z.object({ + image: z.string(), + coords: z.string(), + })).optional() + })) +}) \ No newline at end of file