Skip to content

[REQ] [VERTX_WEB] Use DefaultApiHandler with an own implementation of ApiImpl  #8710

@thobi73

Description

@thobi73

Description:

DefaultApiHandler contains DefaultApi which is set in the default constructor and it is not accessible from outside the class. So, it is impossible to use the generated DefaultApiHandler with an own implementation of DefaultApi.

Openapi-generator version

5.0.1

Suggested Solution:

Generate a second constructor to DefaultApiHandler

public DefaultApiHandler (final DefaultApi apiImpl) {
   this.apiImpl = apiImpl;
}

Workaround for now

use gradle copy task to manipulate generated code

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions