Description
DateTimeTypeAdapter class has a variable private final DateTimeFormatter formatter = ISODateTimeFormat.dateTime(); but it should be private final DateTimeFormatter formatter = ISODateTimeFormat.dateTimeParser();. For example, dates like yyyy-MM-ddTHH:mm:ssZ will not be parsable in the current version, but it will be possible with dateTimeParser function. The previous date format is a default date format from InnoDB passed to Django models
Swagger-codegen version
2.2.1
Suggest a Fix
DateTimeTypeAdapter.java
private final DateTimeFormatter formatter = ISODateTimeFormat.dateTime();
to
private final DateTimeFormatter formatter = ISODateTimeFormat.dateTimeParser();