OpenAPITools / OpenAPITools/openapi-generator

invokerPackage

Open
#14,824 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

https://github.com/OpenAPITools/openapi-generator/blob/32d15100b0622c5e57ac131615e057a58aecef8e/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/PhpClientCodegen.java#L105

ModelInterface应该放到invokerPackage下,因为ObjectSerializer使用到了ModelInterface,而ObjectSerializer在invokerPackage下,都放到invokerPackage下就能起到通用的作用,就可以让不同的服务的api起到公用invokerPackage的类,且可以很好的使用服务来规划model的存放。

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

Start with modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/PhpClientCodegen.java around line 105, then inspect how ModelInterface and ObjectSerializer packages are generated. Confirm that generated clients place ModelInterface under invokerPackage and that shared invokerPackage classes remain usable across services.

Written by the indexing model from the issue text.

Assessment

Tech stack
java, php
Domain
devtools
Issue type
Refactor
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.