Closed codingmatty closed 5 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 | Feb 24, 2024 10:41pm |
This PR provides a new option,
exportAllNamedSchemas
, to override that behavior and export all named schemas even if they are the same type.The default behavior was causing the same schema name to be used in multiple places and the semantics did not make sense.
Example:
This portion of schema with a complexity of 0 would result in a single
username: z.string()
schema set to bothusername
andpassword
query parameters, as well as any other parameters that areschema.type: string
Result: