-
Notifications
You must be signed in to change notification settings - Fork 70
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Schema with default: null becomes default("null") in generated Zod code #188
Comments
|
It would make sense to handle it, wouldn't it? |
sure! |
Or set it to This would be consistent with the already implemented behaviour of removing the question mark when a property has a default: ts-to-zod/src/utils/resolveDefaultProperties.ts Lines 18 to 42 in 7c0835b
|
Bug description
An OpenAPI schema with
default: null
becomesdefault("null")
in generated Zod codeFor full information see: fabien0102/openapi-codegen#212
Input
Expected output
Actual output
Versions
v4.5.3
v3.22.4
The text was updated successfully, but these errors were encountered: