Show fields with null ONLY in Swagger Response

1.2k Views Asked by At

I am using Swagger-Net 8.43.* in .Net 4.8 Web Api

Is it possible to show null values in response body (not in Example value) only in Swagger UI without changing SerializerSettings for whole Api?

Now I have registered IgnoreNulls

config.Formatters.JsonFormatter.SerializerSettings.NullValueHandling = NullValueHandling.Ignore;

and not going to change it. But want to show ONLY in swagger

0

There are 0 best solutions below