Skip to content

Commit e23d952

Browse files
authored
Merge pull request #38 from jeff-lauterbach-by/fix-37
Support yaml urls when using GroupedOpenApi
2 parents 6af220f + b3fd20c commit e23d952

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
@@ -60,7 +60,7 @@ open class OpenApiGeneratorTask : DefaultTask() {
6060
logger.info("Generating OpenApi Docs..")
6161
val response: Response = khttp.get(apiDocsUrl.get())
6262

63-
val isYaml = apiDocsUrl.get().toLowerCase().endsWith(".yaml")
63+
val isYaml = apiDocsUrl.get().toLowerCase().contains(".yaml")
6464
val apiDocs = if (isYaml) response.text else prettifyJson(response)
6565

6666
val outputFile = outputDir.file(outputFileName.get()).get().asFile

0 commit comments

Comments
 (0)