Add bpInTargetCount90/SpanDays90 to snapshot extras OpenAPI

buildExtras emits bpInTargetCount90 + bpInTargetSpanDays90, but the
registered extras schema (additionalProperties: false) omitted them, so a
strict iOS decoder would reject the dashboard snapshot. Declare both as
nullable integers to match the runtime shape and regenerate the spec.
This commit is contained in:
Marc-André Bombeck committed 2026-06-14 20:54:49 +02:00
1 parent c268ace58c
commit 1735205096
2 files changed
+16

No files matched your search

+2
View File
@@ -661,6 +661,8 @@ const dashboardSnapshotResponse = z
bpInTargetPctAllTime: z.number().nullable(),
bpInTargetPctPriorMonth: z.number().nullable(),
bpInTargetPctPriorYear: z.number().nullable(),
bpInTargetCount90: z.number().int().nullable(),
bpInTargetSpanDays90: z.number().int().nullable(),
glucoseByContext: dataSummaryRecord,
glucoseClinical: glucoseClinicalSchema,
})