swagger_parser icon indicating copy to clipboard operation
swagger_parser copied to clipboard

includeIfNull for @JsonSerializable in the configuration

Open AntonShynkaretskyi opened this issue 8 months ago • 0 comments

Use case

By default all the models are generated without includeIfNull value.

Solutions considered

I haven't found any existing configuration for it. Json also doesn't seems to be supporting any kind of global config for it.

Proposal

It'd be awesome to be able to generate @JsonSerializable(includeIfNull: false) instead of @JsonSerializable() when necessary.

AntonShynkaretskyi avatar Jun 19 '24 07:06 AntonShynkaretskyi