This repository has been archived by the owner on Dec 14, 2018. It is now read-only.
Regression: ApiBehaviorOptions.SuppressInferBindingSourcesForParameters
ignored (!!)
#8657
Labels
3 - Done
bug
cost: XS
Will take up to half a day to complete
PRI: 1 - Required
Must be handled in a reasonable time
Milestone
Is this a Bug or Feature request?
Bug and a regression. Problem does not occur with ASP.NET Core 2.1 or earlier 2.2 previews (including Preview 3).
Steps to reproduce (preferably a link to a GitHub repo with a repro project)
MyPocoModelBinder.BindModelAsync(...)
Expected
bindingContext.BindingSource == null
Actual
bindingContext.BindingSource == BindingSource.Path
Description of the problem
InferParameterBindingInfoConvention
has aSuppressInferBindingSourcesForParameters
property which is (correctly) set fromApiBehaviorOptions.SuppressInferBindingSourcesForParameters
. But, the property is never read. Parameter binding sources are always inferred in controllers with[ApiController]
.Version of
Microsoft.AspNetCore.Mvc
orMicrosoft.AspNetCore.App
orMicrosoft.AspNetCore.All
Microsoft.AspNetCore.Mvc
:2.2.0-rtm-35541
The text was updated successfully, but these errors were encountered: