Skip to content

OpenAPI Converter: Expect a default server object when a swagger without host, basePath and scheme is converted to openAPI #790

@ymohdriz

Description

@ymohdriz

Hi team,

When host, schemes, basePath is empty, servers information is null instead of a default server object with url value as /.

Please find the below info from openAPI Spec (servers information should not be null)

servers [Server Object] An array of Server Objects, which provide connectivity information to a target server. If the servers property is not provided, or is an empty array, the default value would be a Server Object with a url value of /.

Thanks,
Mohammed

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