Closed tobiaslins closed 1 year ago
Currently when defining an endpoint like following
export const publishEvent = tb.buildIngestEndpoint({ datasource: "events__v1", event: z.object({ id: z.string(), metadata: z.string().optional().default(""), }), });
and call it
publishEvent({ id: "123" })
Tinybird will reject it because the parsed value (with defaults) is not passed.
Fixed in https://github.com/chronark/zod-bird/releases/tag/v0.2.1
Currently when defining an endpoint like following
and call it
Tinybird will reject it because the parsed value (with defaults) is not passed.