swagger-api / swagger-api/swagger-codegen
[JAVA][JaxRs] The code generator ignores the title and uses a default value
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
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 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