File tree Expand file tree Collapse file tree 3 files changed +12
-3
lines changed
java/io/swagger/codegen/v3/generators/java
resources/handlebars/JavaJaxRS/resteasy Expand file tree Collapse file tree 3 files changed +12
-3
lines changed Original file line number Diff line number Diff line change @@ -439,7 +439,7 @@ public void processOpts() {
439
439
importMapping .put ("OffsetDateTime" , "java.time.OffsetDateTime" );
440
440
}
441
441
} else if (dateLibrary .equals ("legacy" )) {
442
- additionalProperties .put ("legacyDates" , " true" );
442
+ additionalProperties .put ("legacyDates" , true );
443
443
}
444
444
}
445
445
Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ public class JacksonConfig implements ContextResolver<ObjectMapper> {
26
26
public JacksonConfig() throws Exception {
27
27
28
28
objectMapper = new ObjectMapper()
29
- .setDateFormat(new RFC3339DateFormat())
29
+ .setDateFormat(new RFC3339DateFormat()){{#legacyDates } }; { {/legacyDates } }
30
30
{ {#java8} }
31
31
.registerModule(new JavaTimeModule());
32
32
{ {/java8} }
Original file line number Diff line number Diff line change 126
126
<version >1.2</version >
127
127
<scope >provided</scope >
128
128
</dependency >
129
-
129
+ { {#java8} }
130
+ <dependency >
131
+ <groupId >com.fasterxml.jackson.datatype</groupId >
132
+ <artifactId >jackson-datatype-jsr310</artifactId >
133
+ <version >${ jackson-version} </version >
134
+ </dependency >
135
+ { {/java8} }
136
+ { {^java8} }
130
137
<dependency >
131
138
<groupId >com.fasterxml.jackson.datatype</groupId >
132
139
<artifactId >jackson-datatype-joda</artifactId >
137
144
<artifactId >joda-time</artifactId >
138
145
<version >2.7</version >
139
146
</dependency >
147
+ { {/java8} }
140
148
{ {#useOas2} }
141
149
<dependency >
142
150
<groupId >io.swagger</groupId >
209
217
<slf4j-version >1.6.3</slf4j-version >
210
218
<junit-version >4.8.1</junit-version >
211
219
<servlet-api-version >2.5</servlet-api-version >
220
+ { {#java8} }<jackson-version >2.9.10</jackson-version >{ {/java8} }
212
221
</properties >
213
222
</project >
You can’t perform that action at this time.
0 commit comments