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

+14
View File
@@ -13879,6 +13879,18 @@ components:
anyOf:
- type: number
- type: "null"
bpInTargetCount90:
anyOf:
- type: integer
minimum: -9007199254740991
maximum: 9007199254740991
- type: "null"
bpInTargetSpanDays90:
anyOf:
- type: integer
minimum: -9007199254740991
maximum: 9007199254740991
- type: "null"
glucoseByContext:
type: object
propertyNames:
@@ -13893,6 +13905,8 @@ components:
- bpInTargetPctAllTime
- bpInTargetPctPriorMonth
- bpInTargetPctPriorYear
- bpInTargetCount90
- bpInTargetSpanDays90
- glucoseByContext
- glucoseClinical
additionalProperties: false
+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,
})