fix(apple): normalize simulator cache platforms without losing raw fields

This commit is contained in:
morluto
2026-10-08 18:19:37 +08:00
parent 17f2bc7b0d
commit fe3cac8aa8
6 changed files with 76 additions and 7 deletions
+4
View File
@@ -37,6 +37,10 @@ const headerSchema = z.object({
architecture: z.string(),
uuid: z.string(),
platform: applePlatformSchema.nullable(),
/** Producer platform fields before simulator-family normalization. */
header_platform: applePlatformSchema.nullable().default(null),
header_alt_platform: applePlatformSchema.nullable().default(null),
simulator: z.boolean().nullable().default(null),
os_version: z.string().nullable(),
alt_platform: applePlatformSchema.nullable(),
alt_os_version: z.string().nullable(),