Closed
Description
Optional parameters aren't working with OData & latest Api versioning 3.0 beta 1.
i'm using latest of OData api and debugged their source code
But then in mvcRouteHandler it can't find a candidate
public Task RouteAsync(RouteContext context)
{
if (context == null)
{
throw new ArgumentNullException(nameof(context));
}
var candidates = _actionSelector.SelectCandidates(context);
which is strange cause because in NavigationSourceRoutingConvention it could find a proper actionDescriptor. And the optional property was added to controllerContext.RouteData.Add(ODataRouteConstants.OptionalParameters, optional);
return actionDescriptors.Where(
c => String.Equals(c.ActionName, actionName, StringComparison.OrdinalIgnoreCase));
maybe related to issue 340