Adds middleware to your express app to serve the Swagger UI bound to your Swagger document. This acts as living documentation for your API hosted from within your app.
MIT License
1.43k
stars
228
forks
source link
Update swagger-ui-dist version to fix issue with oAuthRedirectUrl #294
SwaggerUI (and the dist) are updated which includes an update to the default URL used as OAuth redirect URL, which is now looking at the full path of the current hostname.
We are using the NestJS Swagger module which does not allow us to set the redirect URL dynamically, the new default URL would allow us to use the configured endpoint (/docs) without hardcoding the full URL in an environment variable.
I think this can also be used in this issue: https://github.com/scottie1984/swagger-ui-express/issues/211
SwaggerUI (and the dist) are updated which includes an update to the default URL used as OAuth redirect URL, which is now looking at the full path of the current hostname.
We are using the NestJS Swagger module which does not allow us to set the redirect URL dynamically, the new default URL would allow us to use the configured endpoint (/docs) without hardcoding the full URL in an environment variable. I think this can also be used in this issue: https://github.com/scottie1984/swagger-ui-express/issues/211