forked from loafle/openapi-generator-original
Fixed name of JSR310 module
Silly error, which resulted in code that didn't compile :-(.
This commit is contained in:
parent
c1a5839d44
commit
cf42b4166f
@ -66,7 +66,7 @@ public class ApiClient {
|
||||
objectMapper.disable(SerializationFeature.WRITE_DATES_AS_TIMESTAMPS);
|
||||
objectMapper.enable(SerializationFeature.WRITE_ENUMS_USING_TO_STRING);
|
||||
objectMapper.enable(DeserializationFeature.READ_ENUMS_USING_TO_STRING);{{#java8}}
|
||||
objectMapper.registerModule(new JavaTimeModule());{{/java8}}{{^java8}}
|
||||
objectMapper.registerModule(new JSR310Module());{{/java8}}{{^java8}}
|
||||
objectMapper.registerModule(new JodaModule());{{/java8}}
|
||||
objectMapper.setDateFormat(ApiClient.buildDefaultDateFormat());
|
||||
|
||||
|
@ -20,7 +20,7 @@ public class JSON implements ContextResolver<ObjectMapper> {
|
||||
mapper.disable(SerializationFeature.WRITE_DATES_AS_TIMESTAMPS);
|
||||
mapper.enable(SerializationFeature.WRITE_ENUMS_USING_TO_STRING);
|
||||
mapper.enable(DeserializationFeature.READ_ENUMS_USING_TO_STRING);{{#java8}}
|
||||
mapper.registerModule(new JavaTimeModule());{{/java8}}{{^java8}}
|
||||
mapper.registerModule(new JSR310Module());{{/java8}}{{^java8}}
|
||||
mapper.registerModule(new JodaModule());{{/java8}}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user