mirror of
https://github.com/MBombeck/HealthLog.git
synced 2026-11-09 04:50:59 +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
@@ -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
|
||||
|
||||
@@ -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