OpenAPITools / OpenAPITools/openapi-generator
invokerPackage
Open
Nobody has claimed this yet.
- Dominant language
- Java
- Stars
- 26.8k
- Forks
- 7.7k
- PR merge metrics
- PR metrics pending
Description
ModelInterface应该放到invokerPackage下,因为ObjectSerializer使用到了ModelInterface,而ObjectSerializer在invokerPackage下,都放到invokerPackage下就能起到通用的作用,就可以让不同的服务的api起到公用invokerPackage的类,且可以很好的使用服务来规划model的存放。
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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