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

Removing webjars-locator-core broke using a provided spec. #58

Closed
madorb opened this issue Jun 21, 2023 · 0 comments
Closed

Removing webjars-locator-core broke using a provided spec. #58

madorb opened this issue Jun 21, 2023 · 0 comments

Comments

@madorb
Copy link

madorb commented Jun 21, 2023

Describe the bug

It appears that attempting to use a provided spec as documented here is broken since webjars-locator-core was removed in springdoc/springdoc-openapi#2173

setting springdoc.api-docs.enabled=false disables autoconfiguration which results in the new SpringDocsUIConfiguration not being configured - which causes a 404 when attempting to resolve the webjar.

I believe the instructions likely need updated to include defining a bean like:

@Bean
SpringDocsUIConfiguration springDocsUiConfiguration(Optional<SwaggerUiConfigProperties> optionalSwaggerUiConfigProperties){
    return new SpringDocsUIConfiguration(optionalSwaggerUiConfigProperties);
}

To Reproduce

  • Boot 2.7.12
  • spring-doc 1.7.0
  • Follow configuration steps here

Expected behavior

swagger-ui loads

@bnasslahsen bnasslahsen transferred this issue from springdoc/springdoc-openapi Jul 29, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant