Skip to content

Commit 73f3b65

Browse files
committed
Pin openapi starter version working version
springdoc/springdoc-openapi#3256 significantly changed our generated schema, making it incompatible with the typescript generators and in some places it was incorrect. We're pinning version 3.0.2 until a new version is available reverting this change, as proposed by springdoc/springdoc-openapi#3276
1 parent 0e0bcc4 commit 73f3b65

1 file changed

Lines changed: 8 additions & 6 deletions

File tree

build.gradle.kts

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,14 @@ dependencies {
3737
implementation("org.postgresql:postgresql:42.7.10")
3838
implementation("org.javers:javers-core:7.11.0")
3939

40-
implementation("org.springdoc:springdoc-openapi-starter-webmvc-ui:3.0.3")
40+
// https://github.com/springdoc/springdoc-openapi/pull/3256 significantly changed our
41+
// generated schema, making it incompatible with the typescript generators and in some
42+
// places it was incorrect. We're pinning version 3.0.2 until a new version is available
43+
// reverting this change, as proposed by https://github.com/springdoc/springdoc-openapi/pull/3276
44+
implementation("org.springdoc:springdoc-openapi-starter-webmvc-ui:3.0.2")
45+
// this is a transitive dependency of uk.gov.justice.service.hmpps:hmpps-kotlin-spring-boot-autoconfigure
46+
// so we need to force a different version
47+
implementation("org.springdoc:springdoc-openapi-starter-common:3.0.2")
4148

4249
implementation("org.springframework.boot:spring-boot-starter-security")
4350
implementation("org.springframework.boot:spring-boot-starter-oauth2-resource-server")
@@ -51,11 +58,6 @@ dependencies {
5158

5259
implementation("com.github.doyaaaaaken:kotlin-csv-jvm:1.10.0")
5360

54-
// as advised by https://github.com/ministryofjustice/hmpps-gradle-spring-boot/blob/main/release-notes/10.x.md#1021
55-
constraints {
56-
implementation("org.webjars:swagger-ui:5.32.2")
57-
}
58-
5961
implementation("org.jetbrains.kotlinx:dataframe:0.15.0") {
6062
exclude(group = "org.jetbrains.kotlinx", module = "dataframe-openapi")
6163
}

0 commit comments

Comments
 (0)