NJsonSchema icon indicating copy to clipboard operation
NJsonSchema copied to clipboard

Adds configuration settings to influence required annotation

Open tsinghammer opened this issue 2 years ago • 2 comments

Sometimes it would be useful, also with an OpenApi3 schema to generate non-required fields as Required.Default. Do you think it makes sense to follow such a toggle and elaborate it more?

tsinghammer avatar Oct 08 '22 16:10 tsinghammer

is this available for merge @RicoSuter ? this seettings seems useful instead of having to register a custom serializer to allow nullable properties (openapi schemas can often be unprecise in the real world)

jkone27 avatar Jan 18 '24 11:01 jkone27

Hitting https://github.com/RicoSuter/NSwag/issues/3851 issue.. can anyone help with ETA for fix??

mjmadhu avatar Apr 23 '24 12:04 mjmadhu