hey-api / openapi-ts

🚀 The OpenAPI to TypeScript codegen. Generate clients, SDKs, validators, and more. Support: @mrlubos
https://heyapi.dev
Other
1.39k stars 107 forks source link

Return 204 status code response as `null` #1263

Open mrlubos opened 1 week ago

mrlubos commented 1 week ago

Clients should "transform" the response from undefined to null. This will work better with tools like TanStack Query since we'll be able to assume if data is not undefined, the request returned.