swagger-api / swagger-api/swagger-codegen

[JAVA] When using msf4j generation with dateLibrary=java8 joda-time is still referenced and used

Open
#5,139 1 comment 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

As @wing328 suggested, I'm opening a separate issue ticket for this problem regarding msf4j java8 time generation.

Basically, it's the same as discussed in #2874 and #4705.
I try to generate msf4j server with -DdateLibrary=java8 and it's still references and uses joda-time.

Swagger-codegen version

2.2.3-SNAPSHOT

Command line used for generation
java -jar ~/workspace/Ghost93/swagger-codegen/modules/swagger-codegen-cli/target/swagger-codegen-cli.jar \
	generate --template-dir ~/workspace/Ghost93/swagger-codegen/modules/swagger-codegen/src/main/resources/MSF4J \
	--input-spec ./swagger.yaml \
	--lang msf4j \
	--output ./ \
	--artifact-id MyService \
	--group-id com.github.ghost93 \
	--invoker-package com.github.ghost93.api \
	--api-package com.github.ghost93.api \
	--model-package com.github.ghost93.model \
	--artifact-id MyService \
	-Dtitle=MyService

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

Reproduce the reported generation command with the MSF4J template directory and dateLibrary=java8, then inspect the generated server project's references to joda-time. Done means the generated MSF4J output uses Java 8 date handling without retaining joda-time references.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.