You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Previously I could tell if reference types were nullable by looking at the required array, but now that's not possible.
Expected behavior
The otherRequiredNullable property should be nullable or there should be a way to disable the required modifier influcing the output. The purpose of the required modifier is to ensure that a property appears in an object initializer and projects piggybacking on it to create other meaning is very questionable (including annoyingly System.Text.Json).
Describe the bug
Same steps as here: #2877 (comment)
Previously I could tell if reference types were nullable by looking at the
required
array, but now that's not possible.Expected behavior
The
otherRequiredNullable
property should be nullable or there should be a way to disable therequired
modifier influcing the output. The purpose of the required modifier is to ensure that a property appears in an object initializer and projects piggybacking on it to create other meaning is very questionable (including annoyinglySystem.Text.Json
).Actual behavior
The
otherRequiredNullable
is still required:Steps to reproduce
See #2877 (comment)
Exception(s) (if any)
No response
Swashbuckle.AspNetCore version
6.6.2
.NET Version
8.0.301
Anything else?
No response
The text was updated successfully, but these errors were encountered: