Unchase.OpenAPI.Connectedservice icon indicating copy to clipboard operation
Unchase.OpenAPI.Connectedservice copied to clipboard

Set explicitly values to AllowNull

Open JacekWalczak92 opened this issue 4 years ago • 1 comments

Right now, some of the objects from the response body are set with the value DisallowNull, however, they can be null, I think this happens because all optional values are by default transform to Required = [..].Disallownull -> is there any way to change this behaviour via UI before generating a service script for certain values or for all such stuff?

JacekWalczak92 avatar Oct 13 '21 14:10 JacekWalczak92

image

Try to call this extension method in your ConfigureServices for correct swagger generation. There will be a lot of new generated stuff but it's ok.

image

C1yde avatar Jun 06 '22 12:06 C1yde