You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This also used to be the recommended method by Swashbuckle, until it switched to extensionless URLs. You may notice that ASP.NET is able to handle extensionless URLs with the same type of handler in <add name="ExtensionlessUrlHandler-Integrated-4.0".
https://github.com/RSuter/NSwag/wiki/OwinGlobalAsax suggests adding three handlers to deal with the static files, but this method is needlessly complex. I assume you got your info from https://stackoverflow.com/a/41155395 ?
I've posted a new answer to that question, repeating it here for convenience:
By default, the StaticFile handler is the last handler to be executed. This means that simply intercepting all NSwag requests is enough:
This also used to be the recommended method by Swashbuckle, until it switched to extensionless URLs. You may notice that ASP.NET is able to handle extensionless URLs with the same type of handler in
<add name="ExtensionlessUrlHandler-Integrated-4.0"
.In addition, this should also be documented on https://github.com/RSuter/NSwag/wiki/Middlewares because this problem is not limited to the Global.asax method.
The text was updated successfully, but these errors were encountered: