Skip to content

Exploded swagger-ui webjar in resources/META-INF/ is not working #3099

@Dyskal

Description

@Dyskal

Describe the bug

I was trying to customize the css of swagger-ui by your comment: #951 (comment)
But it only loaded the swagger html files if the folder was META-INF/resources/webjars/swagger-ui/5.28.1
I find it weird since this is just html/css/js files with no indicators of version

To Reproduce

  • What version of spring-boot you are using? 3.5.6 w/ kotlin & webflux
  • What modules and versions of springdoc-openapi are you using? starter-webflux-ui 2.8.13

Steps to reproduce the behavior:
in build.gradle.kts

dependencies {
    implementation("org.springframework.boot:spring-boot-starter-webflux")
    implementation("org.springdoc:springdoc-openapi-starter-webflux-ui:2.8.13") {
        exclude(module = "swagger-ui")
    }
}

Download the swagger-ui webjar or the swagger-ui dist files and put them inside src/main/resources/META-INF/resources/webjars/swagger-ui/

Expected behavior

The files load even without the version folder

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions