I have a java client in swagger whose swagger.json includes the following:
"updatedTime":{"type":"string","format":"date-time"}
This issue from 2015 says specifying the format as date-time doesn't use Joda DateTime. For my client I want to have the property represented as java.util.Date rather than the Joda representation. I tried using -DdateLibrary=java8, but that prevents the client from using the feign builder when I generate my client using the following command:
java -jar modules/swagger-codegen-cli/target/swagger-codegen-cli.jar generate -i http://localhost:8080/swagger.json -l java --library feign -DdateLibrary=java8 -o samples/client/my-service/java
How can I specify what data type swagger should use for the response object? In fact on the service, the property is already represented as java.util.Date.