Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Swagger generation issues #25

Open
XeNz opened this issue Jan 17, 2020 · 0 comments
Open

Swagger generation issues #25

XeNz opened this issue Jan 17, 2020 · 0 comments
Labels
bug Something isn't working

Comments

@XeNz
Copy link

XeNz commented Jan 17, 2020

Currently there are some swagger generation issues when using 'dispatcher endpoints'.
Using the endpoints from Pacco.Vehicles I have stumbled upon the following:

  • when endpoints with the same path exist, only the first one with particular path will be added to the swagger document
    e.g.: .Get<GetVehicle, VehicleDto>("vehicles/{vehicleId}") and .Put<UpdateVehicle>("vehicles/{vehicleId}") will result in only the GET endpoint being added in the swagger document.

  • example models are currently not rendered as seen here:

At first glance these problems occur in the WebApiDocumentFilter class.

I can post a repro if needed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants