Skip to content

Unable to generate yaml format for a group  #37

Closed
@jeff-lauterbach-by

Description

@jeff-lauterbach-by

I have multiple openapi specs in a single project and am using the GroupedOpenApi capability of springdoc.

I am trying to generate the openapi spec in yaml for a specific group through the gradle plugin by specifying the appropriate apiDocsUrl property.

I'm getting an error

A JSONObject text must begin with '{' at 1 [character 2 line 1]

I dug into the code and it is only looking at the end of the apiDocsUrl property to determine if it is yaml or not. When using the Group capability, the yaml url format is like the following
http://server:port/context-path/v3/api-docs.yaml/{groupName}

The code should probably change to do a contains check instead of an endsWith.

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