Skip to content

[JAVA] Unable to modify the host without overwriting the whole base path #7924

Open
@alango

Description

@alango
Description

The Java client base path includes the hostname (defaulting to localhost), as well as the rest of the base path defined in the yaml. The only method to set the base path overwrites everything, so I can't set the host without overwriting the rest of the basePath which I want to keep.

Swagger-codegen version

2.4.0

Swagger declaration file content or url
basePath: /v2
Steps to reproduce

Online editor, Java client: https://editor.swagger.io/

Produces basePath of http://petstore.swagger.io/v2 with no method available to change the petstore.swagger.io bit without also losing the v2

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