-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Nullable Reference types #1848
Comments
Unfortunately, we have moved to nswag. It works correctly and migration have taken us only a few hours. |
Thanks for the feedback, and sorry to see you go. For anyone else reading this thread, rest assured support for Nullable Reference Types is top of the list for Swashbuckle and something I hope to get out very soon. |
This actually warrants some careful consideration with regards to how this is implemented. System.Text.Json currently blows up when attempting to deserialize a null struct, but permits a nulls for non-null reference types - despite the fact that Under the current behavior, there's an argument that all reference types in your serialization model are required to be nullable. |
(I think this issue is a duplicate of #1686) |
Is there any effort to generate correct types for null reference types?
For example:
will be generated as:
There are multiple problems in this generated code:
I saw some hacks/extensions like this #1487, but in my opinion, this is a pretty basic feature and should be implemented in this library.
Thank you for your answer.
The text was updated successfully, but these errors were encountered: