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
Regression after version 1.6.9 spring.webflux.base-path repeats on page reload #1818
Comments
in this case the operation path grows on each refresh e.g. |
Not reproducible. |
The issue is in OpenApiCustomiser is invoked on every page refresh after version 1.6.9 and before was invoked on startup only once. Please see sample code in https://github.com/vladgon/SpringDoc @Bean
OpenApiCustomiser openApiCustomiser(@Value("${spring.webflux.base-path}") String base) {
return openApi -> openApi.setPaths(openApi.getPaths()
.entrySet()
.stream()
.reduce(new Paths(),
(paths, item) -> paths.addPathItem(
java.nio.file.Paths.get(base, item.getKey())
.toString(),
item.getValue()),
(paths, paths2) -> paths));
} |
Good that you have added the sample. Don't hesitate to test it with the latest SNAPSHOT and provide your feedback. |
**When using spring.webflux.base-path, the prefix multiply on each page reload **
tested with Springboot version 2.7.3
To Reproduce
Steps to reproduce the behavior:
The text was updated successfully, but these errors were encountered: