Closed x3cion closed 3 months ago
The latest updates on your projects. Learn more about Vercel for Git ↗︎
Name | Status | Preview | Comments | Updated (UTC) |
---|---|---|---|---|
typed-openapi-bzof | ✅ Ready (Inspect) | Visit Preview | 💬 Add feedback | Aug 4, 2024 5:17pm |
sounds good, could you include a changeset ?
Hope I did it correctly. :)
Updated the codegen depedency, so newer validation code will be generated. This is a breaking change, if other projects use older versions of the runtime validators.
I did it initially to have a self-referencing schema being correct. Self-referencing schemas fall back to typescript types (instead of e.g.
z.infer<>
. Codegens model-to-typescript in an older version didn't understand optional parameters and simply parsed all properties as required (property: type
instead ofproperty?: type
). (See their fixing commit) This conflicted for me with the zod type then, where zod was correct.I didn't dare to run
pnpm changeset
.Let me know if you plan to merge this or not, I might have to fallback to my fork meanwhile.