Closed junewoo-suk closed 7 years ago
Yes, but:
Fixed by #4473
@junewoo-suk please pull the latest master to give it a try.
Thanks @kevinoid for the fix.
(we've just added Swagger Codegen to ProductHunt: https://www.producthunt.com/posts/swagger-codegen, pleae upvote when you've time)
Description
DateTimeTypeAdapter class has a variable
private final DateTimeFormatter formatter = ISODateTimeFormat.dateTime();
but it should beprivate final DateTimeFormatter formatter = ISODateTimeFormat.dateTimeParser();
. For example, dates likeyyyy-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 modelsSwagger-codegen version
2.2.1
Suggest a Fix
DateTimeTypeAdapter.java
private final DateTimeFormatter formatter = ISODateTimeFormat.dateTime();
toprivate final DateTimeFormatter formatter = ISODateTimeFormat.dateTimeParser();