Skip to content

YAML not supported with actuator endpoint #60

Closed
@brneto

Description

@brneto

I'd like to generate swagger files in yaml format, from actuator + openapi endpoints (http://localhost:8081/actuator/openapi/springdocDefault/yaml).

But run it with the following config:

openApi {
	apiDocsUrl = 'http://localhost:8081/actuator/openapi/springdocDefault/yaml'
	outputFileName = 'openapi.yaml'
	outputDir =  file "$buildDir/docs"
}

I get the error:

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

I see it had been added support to openapi default endpoint http://localhost:8080/api-docs.yaml (#13).

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