Skip to content

YAML not supported #13

Closed
Closed
@gnuton

Description

@gnuton

Hi,
I would need to generate swagger files in yaml,
SpringDoc supports it but not this plugin.

When I run it with the following config:

openApi {
    apiDocsUrl.set("http://localhost:8080/api-docs.yaml")
    outputDir.set(file("$buildDir/docs"))
    outputFileName.set("swagger.yaml")
    waitTimeInSeconds.set(10)
}

the plugin fails with

* What went wrong:
Execution failed for task ':generateOpenApiDocs'.
> A JSONObject text must begin with '{' at 1 [character 2 line 1]


https://github.com/springdoc/springdoc-openapi-gradle-plugin/blob/master/src/main/kotlin/org/springdoc/openapi/gradle/plugin/OpenApiGeneratorTask.kt#L64

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions