Skip to content

Commit 6c7d2dc

Browse files
committed
fix: Fix metrics DTO zod schemas
1 parent 79e6760 commit 6c7d2dc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/dto/metrics.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { DTO, Json } from '../types.js'
33

44
export const V1Alpha1MetricsBucketValueSchema = z.object({
55
attributes: z.record(z.any()),
6-
start_time_unix_nano: z.number(),
6+
start_time_unix_nano: z.number().nullable(),
77
time_unix_nano: z.number(),
88
count: z.number(),
99
bucket_counts: z.array(z.number()),
@@ -21,7 +21,7 @@ export type V1Alpha1MetricsBucketValue = z.infer<
2121

2222
export const V1Alpha1MetricsCountValueSchema = z.object({
2323
attributes: z.record(z.any()),
24-
start_time_unix_nano: z.number(),
24+
start_time_unix_nano: z.number().nullable(),
2525
time_unix_nano: z.number(),
2626
value: z.number(),
2727
})

0 commit comments

Comments
 (0)