OpenAPITools / openapi-generator

OpenAPI Generator allows generation of API client libraries (SDK generation), server stubs, documentation and configuration automatically given an OpenAPI Spec (v2, v3)
https://openapi-generator.tech
Apache License 2.0
21.94k stars 6.59k forks source link

[REQ] Add openApiNullable option to spring-kotlin #20043

Open uga-rosa opened 2 weeks ago

uga-rosa commented 2 weeks ago

Is your feature request related to a problem? Please describe.

In a PATCH request, it's necessary to distinguish between a field not being present and being given a null value, so it would be problematic that we can't use JsonNullable in the request body.

Describe the solution you'd like

Add openApiNullable option (spring for java has it)

Describe alternatives you've considered

Additional context

wing328 commented 2 weeks ago

can you please file a PR to add the option? 🙏

uga-rosa commented 1 week ago

I'm not sure what's needed at all, but I'll try when I have some time. @wing328 Do you have any hints or pointers?