Skip to content

Adds configuration settings to influence required annotation#1563

Open
tsinghammer wants to merge 1 commit intoRicoSuter:masterfrom
tsinghammer:master
Open

Adds configuration settings to influence required annotation#1563
tsinghammer wants to merge 1 commit intoRicoSuter:masterfrom
tsinghammer:master

Conversation

@tsinghammer
Copy link
Copy Markdown

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?

@jkone27
Copy link
Copy Markdown

jkone27 commented Jan 18, 2024

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)

@mjmadhu
Copy link
Copy Markdown

mjmadhu commented Apr 23, 2024

Hitting RicoSuter/NSwag#3851 issue.. can anyone help with ETA for fix??

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants