-
-
Notifications
You must be signed in to change notification settings - Fork 522
GroupedOpenApi seems to not be working with SwaggerUiConfigParameters.urls together #2739
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
Comments
Again, Remember, contributions to this repository should follow its contributing guidelines, security policy, and code of conduct. For how to use the gateway with services, see the following demos samples: |
The demo doesn't use GroupedOpenApi. |
As I understand, GroupedOpenApi is still used for internal OpenApi spec generation, while Swagger urls property on SwaggerUiConfigProperties is used for external OpenApi spec generation. The issue here is that they cannot be combined. Is this intended behavior? |
You maybe do did not read the answer... We limited the use Which means they can be combined for different purposes. |
Describe the bug
I want to combine internal application's OpenAPI spec with external specs into one single Swagger UI.
According to already solved issues:
#309
#584
it should be possible:
To Reproduce
Steps to reproduce the behavior:
Start application which contains OpenAPI spec:
https://github.com/eekyrus/Microservice
Start Spring Gateway application which contains both external Swagger url configuration and GroupedOpenApi configuration:
https://github.com/eekyrus/GroupedOpenApiBug
Try accessing Swagger via localhost:8080/swagger-ui.html.
Expected behavior
Both groups under Definitions dropdown display Swagger UI. 'Microservice' definition should display external Microservice application OpenAPI spec, while 'internalservice' definition should display internal application's OpenAPI spec (empty in demo application).
Additional context
In demo application, removing GroupedOpenApi bean definition and uncommenting PostConstruct code snippet which only defines external swagger urls makes external OpenAPI specs work. It seems that the Spring Gateway application does not receive request to its routing mechanism when GroupedOpenApi configuration is used and does not forward request to Microservice application.
The text was updated successfully, but these errors were encountered: