Skip to content

Commit

Permalink
Consider java.time.ZonedDateTime a Swagger DateTime primitive
Browse files Browse the repository at this point in the history
  • Loading branch information
Helmsdown committed Mar 16, 2016
1 parent 0d72a72 commit 93a490c
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 93a490c

Please # to comment.