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
In ASP.NET 8, a controller with an IReadOnlyCollection<> parameter is not bound from the body of the request by default. An empty array is seen by the controller. This worked in ASP.NET 6. We are currently trying to migrate from .NET 6 to .NET 8.
If the [FromBody] attribute is added to the parameter or List<>/IEnumerable<> is used instead, the binding works.