astahmer / openapi-zod-client

Generate a zodios (typescript http client with zod validation) from an OpenAPI spec (json/yaml)

Home Page:openapi-zod-client.vercel.app

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

additionalPropertiesDefaultValue implementation bug

amvFrontendMonkey opened this issue · comments

In the PR - https://github.com/astahmer/openapi-zod-client/pull/230/files - the cli switch --additional-props-default-value false is not coerced into a boolean before the check within openApiToZod.ts (const additionalPropsSchema = additionalProps === false ? "" : ".passthrough()";)

would you like to send a PR ?

ah, this is a work account and i'm not on the project anymore.

Sorry to say then, I won't