apiclientcodegen icon indicating copy to clipboard operation
apiclientcodegen copied to clipboard

Add setting to generate nullable value types for optional request body properties (Refitter)

Open MSulsters opened this issue 2 years ago • 2 comments

It's often a problem that value types are not nullable in the request body, but the destination API expects them to be null, depending business rules.

Add a setting to make it possible to generate nullable value types for optional request body properties (Refitter)

To prevent I have to update those fields manually every time a re-generation of the code (i.e.. after a change of the destination API) is needed.

MSulsters avatar Jan 13 '24 17:01 MSulsters

Thanks for taking the time to report this @MSulsters

This should be possible. I'll see if I can do it directly using the currently available options for Refitter, otherwise I'll have to implement it in Refitter first then update this tool afterwards

christianhelle avatar Jan 14 '24 08:01 christianhelle

Thnx a lot for the feedback.

MSulsters avatar Jan 14 '24 11:01 MSulsters