Skip to content

Generated Java client API not thread safe #1435

@fabiankessler

Description

@fabiankessler

The codegen generates a DefaultApi class and an ApiClient class.
Both classes have zero Javadoc.

Intuitively, I would assume that an API is a thread safe service API. That's not the case here.
DefaultApi looks fine, but it uses the ApiClient which a) is mutable and b) stores state in class fields, for example the responseHeaders.

Either document how it's supposed to be used, and that it's not thread safe, or refactor.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions