openapi-zod-client icon indicating copy to clipboard operation
openapi-zod-client copied to clipboard

additionalPropertiesDefaultValue implementation bug

Open amvFrontendMonkey opened this issue 1 year ago • 3 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()";)

amvFrontendMonkey avatar Nov 07 '23 11:11 amvFrontendMonkey

would you like to send a PR ?

astahmer avatar Nov 07 '23 14:11 astahmer

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

Sorry to say then, I won't

amvFrontendMonkey avatar Nov 14 '23 14:11 amvFrontendMonkey

@astahmer I'd be willing to provide a PR for this

Is this something you'd accept?

amvFrontendMonkey avatar May 09 '24 11:05 amvFrontendMonkey