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
I guess this is more due to the docs not covering it, but there is a breaking change for how ASP.NET Core 7 handles nullability and Required fields for model binding. It's lacking from this list: https://learn.microsoft.com/en-us/dotnet/core/compatibility/7.0
Expected Behavior
Either the same behaviour re model binding between 6 and 7, or the docs listing this specific detail as a breaking change.
GitHub actions running the tests in both 6 and 7 is provided, which shows one test running OK in ASP.NET Core 6 but failing in 7.
There is a small difference in how nullability and required is handled if the model contains 1 vs more than 1 fields, and the model contains a generic field.
Exceptions (if any)
No response
.NET Version
7
Anything else?
ASP.NET Core 7
The text was updated successfully, but these errors were encountered:
johnkors
changed the title
Undocumented breaking change in ASP.NET Core 7 model binding when using Nullability
Undocumented breaking change in ASP.NET Core 7 model binding when using Nullability and model contains generic field
Apr 26, 2023
Is there an existing issue for this?
Describe the bug
I guess this is more due to the docs not covering it, but there is a breaking change for how ASP.NET Core 7 handles nullability and Required fields for model binding. It's lacking from this list: https://learn.microsoft.com/en-us/dotnet/core/compatibility/7.0
Expected Behavior
Either the same behaviour re model binding between 6 and 7, or the docs listing this specific detail as a breaking change.
Steps To Reproduce
https://github.com/johnkors/aspnetcore7-compat-repro
GitHub actions running the tests in both 6 and 7 is provided, which shows one test running OK in ASP.NET Core 6 but failing in 7.
There is a small difference in how nullability and required is handled if the model contains 1 vs more than 1 fields, and the model contains a generic field.
Exceptions (if any)
No response
.NET Version
7
Anything else?
ASP.NET Core 7
The text was updated successfully, but these errors were encountered: