Skip to content

Commit 19c1762

Browse files
mourjodzikoysk
andauthored
GH-225 Upgrade versions of redoc and swagger plugins (#225)
* Upgrade versions of redoc and swagger plugins * GH-225 Fix base path for Swagger UI & bump ReDoc version in config --------- Co-authored-by: dzikoysk <[email protected]>
1 parent 7e1ec6d commit 19c1762

File tree

6 files changed

+8
-8
lines changed

6 files changed

+8
-8
lines changed

examples/javalin-gradle-kotlin/src/main/java/io/javalin/openapi/plugin/test/JavalinTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ public static void main(String[] args) {
6767
.description("Server description goes here")
6868
.url("http://localhost:{port}{basePath}/" + version + "/")
6969
.variable("port", "Server's port", "8080", "8080", "7070")
70-
.variable("basePath", "Base path of the server", "", "", "v1")
70+
.variable("basePath", "Base path of the server", "", "", "/v1")
7171
)
7272
// Based on official example: https://swagger.io/docs/specification/authentication/oauth2/
7373
.withSecurity(openApiSecurity ->

gradlew

100644100755
File mode changed.

javalin-plugins/javalin-redoc-plugin/build.gradle.kts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ description = "Javalin ReDoc Plugin | Serve ReDoc UI for OpenAPI specification"
33
dependencies {
44
api(project(":openapi-specification"))
55

6-
implementation("org.webjars.npm:redoc:2.0.0-rc.70") { // also bump redoc-ui version in OpenApiConfiguration
6+
implementation("org.webjars.npm:redoc:2.1.4") { // also bump redoc-ui version in OpenApiConfiguration
77
exclude(group = "org.webjars.npm")
88
}
9-
implementation("org.webjars.npm:js-tokens:5.0.0")
10-
}
9+
implementation("org.webjars.npm:js-tokens:8.0.2")
10+
}

javalin-plugins/javalin-redoc-plugin/src/main/kotlin/io/javalin/openapi/plugin/redoc/ReDocPlugin.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ class ReDocConfiguration {
1717
/* Custom base path */
1818
var basePath: String? = null
1919
/** ReDoc Bundle version **/
20-
var version = "2.0.0-rc.70"
20+
var version = "2.1.4"
2121
/** ReDoc WebJar route */
2222
var webJarPath = "/webjars/redoc"
2323
}

javalin-plugins/javalin-swagger-plugin/build.gradle.kts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,5 @@ description = "Javalin Swagger Plugin | Serve Swagger UI for OpenAPI specificati
33
dependencies {
44
api(project(":openapi-specification"))
55
@Suppress("GradlePackageUpdate")
6-
api("org.webjars:swagger-ui:3.52.5") // also bump swagger-ui version in OpenApiConfiguration
7-
}
6+
api("org.webjars:swagger-ui:5.17.14") // also bump swagger-ui version in OpenApiConfiguration
7+
}

javalin-plugins/javalin-swagger-plugin/src/main/kotlin/io/javalin/openapi/plugin/swagger/SwaggerPlugin.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ class SwaggerConfiguration {
2020

2121
// WebJar configuration
2222
/** Swagger UI Bundle version */
23-
var version = "3.52.5"
23+
var version = "5.17.14"
2424
/** Swagger UI Bundler webjar location */
2525
var webJarPath = "/webjars/swagger-ui"
2626

0 commit comments

Comments
 (0)