Closed maubin-kl closed 4 years ago
@rbeauchamp I can produce a sample project if you want.
I debugged the code and I believe the problem is in Swashbuckle.OData.Descriptions.ODataSwaggerUtilities.CreateSwaggerPathForOperationImport
Looks like every parameter are added as body parameter in the swagger. I don't know if this is intentional/normal or not. If you provide me with enough detail I could fix the issue and create a PR (if this is an issue).
I finally fixed the issue. I should have a PR soon on this.
In my OData endpoint I have several unbound actions. When I copy/paste the generated swagger on https://editor.swagger.io it gives me an error on every unbound actions I have. See image below.
The swagger of that action looks like this:
If I look at an entity bound action everything looks fine.