astahmer / openapi-zod-client

Generate a zodios (typescript http client with zod validation) from an OpenAPI spec (json/yaml)
openapi-zod-client.vercel.app
788 stars 84 forks source link

fix: pass options when shouldExportAllSchemas is true #232

Closed ArthurGoupil closed 1 year ago

ArthurGoupil commented 1 year ago

Following latest update, I realized options are not passed to getZodSchema when shouldExportAllSchemas is true, resulting with .passthrough() on schemas even if additionalPropertiesDefaultValue: false is passed.

If this is too risky, I can only pass additionalPropertiesDefaultValue to options if needed.

vercel[bot] commented 1 year 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 Sep 27, 2023 10:14am