swagger-api / swagger-api/swagger-codegen

jackson-version never updated in handlebars swagger-codegen-cli

Open
#10,363 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

Downloaded Jar
https://repo1.maven.org/maven2/io/swagger/codegen/v3/swagger-codegen-cli/3.0.25/swagger-codegen-cli-3.0.25.jar

There are two resttemplate\pom.mustache files in the Jar.

The pom.mustache inside handlebars seems to be never updated.

image

image

Swagger-codegen version

swagger-codegen-cli-3.0.25.jar

Command line used for generation
java -jar swagger-codegen-cli.jar generate --input-spec swagger.yaml ^
-D hideGenerationTimestamp=true,java8=true,dateLibrary=java8 ^
--lang java --library resttemplate --template-engine handlebars ^
--api-package com.de.api --model-package com.de.model --invoker-package com.de.invoker ^
--group-id com.de --artifact-id swagger-codegen-apiclient --artifact-version 1.0.0 ^
--output swagger-codegen-apiclient

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

Compare the two Java resttemplate/pom.mustache files at the paths linked in the issue, focusing on the jackson-version entries. Start by reading the handlebars template in swagger-codegen-generators and the corresponding Java template in swagger-codegen, then verify that the generated CLI includes the intended updated value for both template engines.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.