Skip to content

Commit

Permalink
[Java] fix LocalTime import for dateLibrary java8 (OpenAPITools#14111)
Browse files Browse the repository at this point in the history
The import mapping for LocalTime still pointed to org.joda.time.*.
This one line made the jodatime dependency required.
  • Loading branch information
Crydust authored Dec 27, 2022
1 parent 63f6569 commit 8a2a059
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -656,6 +656,7 @@ public void processOpts() {
additionalProperties.put("jsr310", "true");
typeMapping.put("date", "LocalDate");
importMapping.put("LocalDate", "java.time.LocalDate");
importMapping.put("LocalTime", "java.time.LocalTime");
if ("java8-localdatetime".equals(dateLibrary)) {
typeMapping.put("DateTime", "LocalDateTime");
importMapping.put("LocalDateTime", "java.time.LocalDateTime");
Expand Down

0 comments on commit 8a2a059

Please sign in to comment.