aspnet-api-versioning icon indicating copy to clipboard operation
aspnet-api-versioning copied to clipboard

odata query options (filter/skip/top/orderby) not included in api explorer

Open engenb opened this issue 6 months ago • 3 comments
trafficstars

Is there an existing issue for this?

  • [x] I have searched the existing issues

Describe the bug

I've tried to configure query options globally, via controller action attribute, the new ODataApiExplorerOptions approach and everything else I can think of. regardless, the only two odata query options that I've ever seen included in the api explorer are select and expand - I'm validating this via swagger.

Expected Behavior

configured query options should be included in openapi / swagger doc

Steps To Reproduce

here is a sample repo that demonstrates the issue

Exceptions (if any)

No response

.NET Version

8.0

Anything else?

I've also noticed the only api doc in swagger is v1 - v2 is excluded for some reason. I have not seen this issue before so not sure if it's related or not.

I'm working on migrating from Microsoft.AspNetCore.Mvc.Versioning.ApiExplorer

engenb avatar May 02 '25 22:05 engenb