forked from loafle/openapi-generator-original
[okhttp] use gson ISO8601Utils to parse dates
this allows to remove a lot of code in the ApiClient. Tests for the ApiClient thus have been move to JSONTest. Also allow to configure the date formatter of all date types individually. An assertion in testCreateAndGetPetAsync() is removed because it's useless and makes the test fail randomly. See #3727
This commit is contained in:
@@ -260,6 +260,7 @@ public abstract class AbstractJavaCodegen extends DefaultCodegen implements Code
|
||||
}
|
||||
|
||||
if("joda".equals(dateLibrary)) {
|
||||
additionalProperties.put("joda", "true");
|
||||
typeMapping.put("date", "LocalDate");
|
||||
typeMapping.put("DateTime", "DateTime");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user