Skip to content

Commit

Permalink
Merge pull request #1715 from Helmsdown/java-8-dates
Browse files Browse the repository at this point in the history
Consider java.time.ZonedDateTime a Swagger DateTime primitive
  • Loading branch information
fehguy committed Mar 18, 2016
2 parents a4a1d33 + 93a490c commit b0ec2e0
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ public ObjectProperty createProperty() {
final Map<String, PrimitiveType> externalClasses = new HashMap<String, PrimitiveType>();
addKeys(externalClasses, DATE, "org.joda.time.LocalDate", "java.time.LocalDate");
addKeys(externalClasses, DATE_TIME, "org.joda.time.DateTime", "org.joda.time.ReadableDateTime",
"javax.xml.datatype.XMLGregorianCalendar", "java.time.LocalDateTime");
"javax.xml.datatype.XMLGregorianCalendar", "java.time.LocalDateTime", "java.time.ZonedDateTime");
EXTERNAL_CLASSES = Collections.unmodifiableMap(externalClasses);

final Map<String, PrimitiveType> names = new TreeMap<String, PrimitiveType>(String.CASE_INSENSITIVE_ORDER);
Expand Down

0 comments on commit b0ec2e0

Please # to comment.