Example:
description: 'Array of daily data points [[epoch-millis, metric-value], ..., [epoch-millis, metric-value]]. Data quality issues can cause the metric value to be null.'
additionalProperties: false
type: array
items:
additionalProperties: false
type: array
minItems: 2
maxItems: 2
items:
type: number
nullable: true
readOnly: true
readOnly: true
readOnly: true
Zod:
const Example = z.array(z.array(z.number()));
Expected behavior
Zod:
const Example = z.array(z.array(z.number().nullable()));
Additional context
It seems the generated type properly reflects the type
Describe the bug
Minimal reproduction Example
OpenApi:
Zod:
Expected behavior Zod:
Additional context It seems the generated type properly reflects the type