mirror of
https://github.com/MBombeck/HealthLog.git
synced 2026-11-12 14:16:12 +00:00
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:
1 parent
c268ace58c
commit
1735205096
2 files changed
+16
No files matched your search
@@ -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,
|
||||
})
|
||||
|
||||
Reference in new issue
Block a user