Description
Run the newest aspnetcore odata swagger sample project directly. all parameters decorated with [FromODataUri] are marked with 'query' (in query string) but not 'path' (in url) in the api document. path parameters decorated with [FromRoute] attribute or no attribute are marked as 'path' correctly.
add [ApiController] (i use this to make auto 400 response and some analyzers use this to realize a controller is not a view controller) and [Route("")] (which can't work without api versioning because multiple actions match same route; it seems that api versioning make it be ignored) to odatacontroller, path parameters in odata route template decorated with no attribute can't be recognized by the middleware , instead they are considered same as decorated with [FromQuery]. This is a default behavior of [ApiController] if the middleware can not find the parameter in route template. The problem is that the middleware should find these parameters but not. In odata api versioning 4.1.1, there is no such problem. This might be caused by same underlying mistake with problem i mentioned in #692 (comment)