We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 778b98e commit bbbff16Copy full SHA for bbbff16
src/main/kotlin/org/springdoc/openapi/gradle/plugin/OpenApiGeneratorTask.kt
@@ -74,7 +74,7 @@ open class OpenApiGeneratorTask : DefaultTask() {
74
logger.info("Generating OpenApi Docs..")
75
val response: Response = khttp.get(url)
76
77
- val isYaml = url.toLowerCase().contains(".yaml") || url.toLowerCase().endsWith("/yaml")
+ val isYaml = url.toLowerCase().contains(".yaml") || url.toLowerCase().endsWith("/yaml")
78
val apiDocs = if (isYaml) response.text else prettifyJson(response)
79
80
val outputFile = outputDir.file(fileName).get().asFile
0 commit comments