Description
I get ApiException when Swagger tries to retrieve the following JSON:
{"apiVersion":1,"providerID":9999999999,"timeStamp":"2016-08-15T14:38:36.172Z"}
The root cause is that JsonUtil.java calls
gsonBuilder.setDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSSZ");
instead of calling it with single quotes around the "Z"
gsonBuilder.setDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'");
2.0
Swagger declaration file content or url
Command line used for generation
Steps to reproduce
Specify the format of a yaml field to "date-time"
Related issues
Suggest a Fix
Add single quotes around the "Z" character in the String argument to gsonBuilder.setDateFormat()
Description
I get ApiException when Swagger tries to retrieve the following JSON:
{"apiVersion":1,"providerID":9999999999,"timeStamp":"2016-08-15T14:38:36.172Z"}
The root cause is that JsonUtil.java calls
gsonBuilder.setDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSSZ");
instead of calling it with single quotes around the "Z"
gsonBuilder.setDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'");
2.0
Swagger declaration file content or url
Command line used for generation
Steps to reproduce
Specify the format of a yaml field to "date-time"
Related issues
Suggest a Fix
Add single quotes around the "Z" character in the String argument to gsonBuilder.setDateFormat()