From 6473bfb69bb3e91b28c0e0b440ddf8244a6c1c10 Mon Sep 17 00:00:00 2001 From: joshua bauer Date: Mon, 22 Oct 2018 15:51:32 -0700 Subject: [PATCH] Fix for wrong YAML mapper. --- .../java/io/sinistral/proteus/services/OpenAPIService.java | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/main/java/io/sinistral/proteus/services/OpenAPIService.java b/src/main/java/io/sinistral/proteus/services/OpenAPIService.java index a526dc6..b2c37ea 100644 --- a/src/main/java/io/sinistral/proteus/services/OpenAPIService.java +++ b/src/main/java/io/sinistral/proteus/services/OpenAPIService.java @@ -24,13 +24,9 @@ import org.slf4j.Logger; import org.slf4j.LoggerFactory; -import com.fasterxml.jackson.annotation.JsonInclude.Include; import com.fasterxml.jackson.core.type.TypeReference; -import com.fasterxml.jackson.databind.DeserializationFeature; import com.fasterxml.jackson.databind.ObjectMapper; import com.fasterxml.jackson.databind.ObjectWriter; -import com.fasterxml.jackson.databind.SerializationFeature; -import com.fasterxml.jackson.dataformat.yaml.YAMLMapper; import com.fasterxml.jackson.datatype.jdk8.Jdk8Module; import com.google.inject.Inject; import com.google.inject.Singleton; @@ -41,8 +37,8 @@ import io.sinistral.proteus.server.tools.oas.Reader; import io.sinistral.proteus.server.tools.oas.ServerModelResolver; import io.sinistral.proteus.server.tools.oas.ServerParameterExtension; -import io.swagger.util.Yaml; import io.swagger.v3.core.util.Json; +import io.swagger.v3.core.util.Yaml; import io.swagger.v3.jaxrs2.ext.OpenAPIExtensions; import io.swagger.v3.jaxrs2.integration.JaxrsApplicationAndAnnotationScanner; import io.swagger.v3.oas.integration.GenericOpenApiContext;