Skip to content

Commit 326670d

Browse files
committed
fix: fix record array field value to be properly exported
1 parent 88edf61 commit 326670d

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

packages/schemas/src/instrument/instrument.base.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,10 @@ const $UnilingualInstrumentDetails = $InstrumentDetails.extend({
9292

9393
const $InstrumentMeasureVisibility: z.ZodType<InstrumentMeasureVisibility> = z.enum(['hidden', 'visible']);
9494

95-
const $RecordArrayFieldValue = z.union([z.string(), z.boolean(), z.number(), z.date(), z.undefined()]);
95+
const $RecordArrayFieldValue = z.record(
96+
z.string(),
97+
z.union([z.string(), z.boolean(), z.number(), z.date(), z.undefined()])
98+
);
9699

97100
const $InstrumentMeasureValue: z.ZodType<InstrumentMeasureValue> = z.union([
98101
z.string(),

0 commit comments

Comments
 (0)