OpenAPITools / OpenAPITools/openapi-generator

[REQ] Support Java Code with Common Library

Open
#7,350 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Enhancement: Feature
Dominant language
Java
Stars
26.8k
Forks
7.7k
PR merge metrics
PR metrics pending

Description

It is difficult to handle client configuration in a general fashion. Frequently microservices interact with more than one service and each ApiClient is a distinct class for each service. I have not seen any example or guidance on using multiple generated clients.

Seems at a minimum a common set of interfaces could be used and applied to the generated classes and placed in a common library.

If there is already a strategy in place, please advise.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

The issue names no files, tests, or specific entry points beyond generated Java ApiClient classes. Start by reviewing how multiple generated clients are currently configured and whether existing guidance covers shared configuration. Done would require a defined, agreed strategy for common interfaces or library support, plus clear documentation and validation criteria.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
api, tooling
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.