SMILEY4 / ktor-swagger-ui

Kotlin Ktor plugin to generate OpenAPI and provide Swagger UI
Apache License 2.0
178 stars 33 forks source link

Swagger UI breaks after changing sort method #16

Closed blinchk closed 1 year ago

blinchk commented 1 year ago

Version: 1.0.1

Source code

fun Application.configureSwagger() {
    install(SwaggerUI) {
        swagger {
            swaggerUrl = "swagger"
            sort = SwaggerUiSort.HTTP_METHOD
        }
    }
}

Actual result Swagger returns JavaScript exception:

Uncaught ReferenceError: method is not defined
    at window.onload
image
blinchk commented 1 year ago

Fixed in #18.