We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 40f8a5a commit cda3534Copy full SHA for cda3534
src/main/kotlin/org/springdoc/openapi/gradle/plugin/OpenApiGeneratorTask.kt
@@ -87,7 +87,7 @@ open class OpenApiGeneratorTask : DefaultTask() {
87
88
private fun prettifyJson(response: Response): String {
89
val gson = GsonBuilder().setPrettyPrinting().create()
90
- val googleJsonObject = gson.fromJson(response.jsonObject.toString(), JsonObject::class.java)
+ val googleJsonObject = gson.fromJson(response.text, JsonObject::class.java)
91
return gson.toJson(googleJsonObject)
92
}
93
0 commit comments