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.
2 parents 6af220f + b3fd20c commit e23d952Copy full SHA for e23d952
src/main/kotlin/org/springdoc/openapi/gradle/plugin/OpenApiGeneratorTask.kt
@@ -60,7 +60,7 @@ open class OpenApiGeneratorTask : DefaultTask() {
60
logger.info("Generating OpenApi Docs..")
61
val response: Response = khttp.get(apiDocsUrl.get())
62
63
- val isYaml = apiDocsUrl.get().toLowerCase().endsWith(".yaml")
+ val isYaml = apiDocsUrl.get().toLowerCase().contains(".yaml")
64
val apiDocs = if (isYaml) response.text else prettifyJson(response)
65
66
val outputFile = outputDir.file(outputFileName.get()).get().asFile
0 commit comments