Skip to content

Commit

Permalink
Guava module registered in ObjectMapper
Browse files Browse the repository at this point in the history
  • Loading branch information
Felipe444 committed May 29, 2019
1 parent 811c1c9 commit 42a8bee
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

import com.fasterxml.jackson.databind.JsonMappingException;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.fasterxml.jackson.datatype.guava.GuavaModule;
import com.fasterxml.jackson.module.jsonSchema.JsonSchemaGenerator;
import com.hltech.vaunt.core.domain.model.Service;
import com.hltech.vaunt.generator.domain.representation.RepresentationExtractor;
Expand All @@ -18,6 +19,7 @@ public class VauntGenerator {

public VauntGenerator() {
ObjectMapper mapper = new ObjectMapper();
mapper.registerModule(new GuavaModule());
JsonSchemaGenerator generator = new JsonSchemaGenerator(mapper);

extractor = new RepresentationExtractor(generator);
Expand Down

0 comments on commit 42a8bee

Please sign in to comment.