Skip to content
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

Add option to generate all undefined as null or undefined. #2068

Open
ryanelian opened this issue Dec 24, 2024 · 0 comments
Open

Add option to generate all undefined as null or undefined. #2068

ryanelian opened this issue Dec 24, 2024 · 0 comments
Labels
bug Something isn't working openapi-ts Relevant to the openapi-typescript library

Comments

@ryanelian
Copy link

ryanelian commented Dec 24, 2024

We believe we have an issue when generating from Python to TypeScript.

For some reason, the API may return T | null but the type generated using openapi-typescript is T | undefined

Can we have an option to modify the output to allow both T | null | undefined?

@ryanelian ryanelian added bug Something isn't working openapi-ts Relevant to the openapi-typescript library labels Dec 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working openapi-ts Relevant to the openapi-typescript library
Projects
None yet
Development

No branches or pull requests

1 participant