swagger-codegen icon indicating copy to clipboard operation
swagger-codegen copied to clipboard

[JAVA] Bug. The configuration of dateLibrary does not take effect.

Open TheFu527 opened this issue 3 years ago • 0 comments

Description

When I use swagger-codegen-cli to generate java client, I found that no matter how my dateLibrary config is configured, such as {"dateLibrary": "java11"}, the generated model code will import org.joda.time.*.

Swagger-codegen version

3.0.34

Swagger declaration file content or url
Command line used for generation
java -jar swagger-codegen-cli.jar generate \
    -l java \
    -o ./java-sdk \
    -i ./docs/api-0.3.0.yaml \
    -s false \
    -c java-sdk-config.json \

java-sdk-config.json

{
    "dateLibrary": "java11",
    "fullJavaUtil": true ,
    "library": "retrofit2"
}

TheFu527 avatar Aug 11 '22 09:08 TheFu527