Skip to content

Commit

Permalink
Inconsistent JSON ordering compared to springdoc-openapi. Fixes #45
Browse files Browse the repository at this point in the history
  • Loading branch information
bnasslahsen committed Aug 23, 2021
1 parent 40f8a5a commit cda3534
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ open class OpenApiGeneratorTask : DefaultTask() {

private fun prettifyJson(response: Response): String {
val gson = GsonBuilder().setPrettyPrinting().create()
val googleJsonObject = gson.fromJson(response.jsonObject.toString(), JsonObject::class.java)
val googleJsonObject = gson.fromJson(response.text, JsonObject::class.java)
return gson.toJson(googleJsonObject)
}
}

0 comments on commit cda3534

Please sign in to comment.