swagger-api / swagger-api/swagger-codegen-generators

jaxrs-spec Not heeding apiPackage or modelPackage (io.swagger.api|model, despite cfg)

Open
#382 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Mustache
Stars
299
Forks
439
PR merge metrics
No merged PRs in 30d

Description

Seems to be a direct result of

         apiPackage = "io.swagger.api";
         modelPackage = "io.swagger.model";

being AFTER

        super.processOpts();

in JavaJAXRSSpecServerCodegen.java:78

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 at JavaJAXRSSpecServerCodegen.java:78 and inspect the ordering of apiPackage and modelPackage assignments relative to super.processOpts(). Reproduce the issue with the configuration shown in the report and verify that generated API and model packages honor those configured values instead of the defaults.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
api, tooling
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.