openapi-zod-client
openapi-zod-client copied to clipboard
additionalPropertiesDefaultValue implementation bug
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
@astahmer I'd be willing to provide a PR for this
Is this something you'd accept?