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
{{ message }}
This repository was archived by the owner on Dec 14, 2018. It is now read-only.
It looks like the null handling behavior was changed in this PR.
There is a new option AllowEmptyInputInBodyModelBinding that is false by default. If you want to handle the null values yourself you'll need to set this to true.
I have an action filter that automatically checks
ModelState
and returns400
if it's not valid.We have a few actions that have optional body parameters, for example:
Specifying the default value of
null
used to be enough to mark them as optional. Since upgrading to ASP.NET Core 2.0 I get the following response:The text was updated successfully, but these errors were encountered: