According to 1784, not specifying the date library should result in using java.util.Date. But, I notice that it ends up using joda DateTime.
version 2.2.1
java -jar swagger-codegen-cli.jar generate -i http://localhost:8080/v1/swagger.json -l java --library feign -o samples/client/my-client
You'll notice the joda library is used in the petstore sample client.
The default date has been changed to joda. If you want old dates, you need to use -DdateLibrary=legacy.
That said it's not recommended to use java.util.Date and you should always prefer threeten or joda.
I believe that there's a bug where the threeten stuff is NOT included in the POM.xml as a dependency.
Most helpful comment
The default date has been changed to joda. If you want old dates, you need to use -DdateLibrary=legacy.
That said it's not recommended to use java.util.Date and you should always prefer threeten or joda.