Closed nmcdaines closed 8 months ago
The latest updates on your projects. Learn more about Vercel for Git ↗︎
Name | Status | Preview | Comments | Updated (UTC) |
---|---|---|---|---|
openapi-zod-client | ✅ Ready (Inspect) | Visit Preview | 💬 Add feedback | Dec 5, 2023 10:29pm |
Hey @astahmer, thanks for reviewing and apologies for not including a changeset 🙏 I've amended my previous commit to include a changeset 👍
A feature (#230) was added to the
cli
to give a user flexibility of allowing additional properties on types defined by the generator by omitting the.passthrough()
deceleration on azod
schema - which should resolve #196When trying this feature, I discovered it wasn't possible to set the flag
additionalPropsDefaultValue
correctly as the cli returns astring
and theopenApiToZod
method expects aboolean
for this valueI've refactored the
match
statement used forwithAlias
to be a helper method calledtoBoolean
and consumed from the same location aswithAlias
does.