Skip to content

Commit cda3534

Browse files
committed
Inconsistent JSON ordering compared to springdoc-openapi. Fixes #45
1 parent 40f8a5a commit cda3534

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/kotlin/org/springdoc/openapi/gradle/plugin/OpenApiGeneratorTask.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ open class OpenApiGeneratorTask : DefaultTask() {
8787

8888
private fun prettifyJson(response: Response): String {
8989
val gson = GsonBuilder().setPrettyPrinting().create()
90-
val googleJsonObject = gson.fromJson(response.jsonObject.toString(), JsonObject::class.java)
90+
val googleJsonObject = gson.fromJson(response.text, JsonObject::class.java)
9191
return gson.toJson(googleJsonObject)
9292
}
9393
}

0 commit comments

Comments
 (0)