swagger-api / swagger-api/swagger-codegen

[JAVA][JaxRs] The code generator ignores the title and uses a default value

Open
#8,497 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Mustache
Stars
17.8k
Forks
6k
PR merge metrics
No merged PRs in 30d

Description

Description

The Java-JaxRs code generator ignores the title set in the YAML file and always sets "Swagger Server" as a title. (In both Bootstrap.java and web.xml)

Swagger-codegen version

2.3.1

Command line used for generation

Maven plugin used
<plugin> <groupId>io.swagger</groupId> <artifactId>swagger-codegen-maven-plugin</artifactId> <version>2.3.1</version> <executions> <execution> <goals> <goal>generate</goal> </goals> <configuration> <language>jaxrs</language> ........

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 by inspecting the Java-JaxRs generator output in Bootstrap.java and web.xml, then trace how the title from the YAML definition is passed into those templates. Done means both generated locations use the configured title instead of the default "Swagger Server"; the issue does not name a test to run.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.