Don't throw exception for parameters with custom binding source by captainsafia · Pull Request #59035 · dotnet/aspnetcore (original) (raw)
Closes #59013.
We can probably afford to be more lax here. One thing to note is that this means that users will have to do the due diligence to set the parameter location themselves via transformers since we can't figure out this information implicitly.
Also, if users want to specify custom binder for a parameter that is actually from the body, they will need to define the binding source correctly on the model binder so that the argument appears under the requestBody
field of the operation instead of the parameters
field.