Closed sp88011 closed 1 year ago
Is it possible to preserve the order of my properties?
Right now, the order changes:
const userSchema = z.object({ name: z.string().optional(), age: z.number(), email: z.string().email(), }); console.log(zodToJsonSchema(userSchema)) // {... properties: { age... email ... name ... } ...
Can't recreate this. What version of node and the package are you using?
Sorry, my bad. It works fine.
Is it possible to preserve the order of my properties?
Right now, the order changes: