Package org.springdoc.core.providers
Class ObjectMapperProvider
java.lang.Object
io.swagger.v3.core.util.ObjectMapperFactory
org.springdoc.core.providers.ObjectMapperProvider
public class ObjectMapperProvider
extends io.swagger.v3.core.util.ObjectMapperFactory
The type Spring doc object mapper provider.
-
Constructor Summary
ConstructorDescriptionObjectMapperProvider
(SpringDocConfigProperties springDocConfigProperties) Instantiates a new Spring doc object mapper. -
Method Summary
Modifier and TypeMethodDescriptionstatic com.fasterxml.jackson.databind.ObjectMapper
createJson
(SpringDocConfigProperties springDocConfigProperties) Create json object mapper.com.fasterxml.jackson.databind.ObjectMapper
Mapper object mapper.static void
sortOutput
(com.fasterxml.jackson.databind.ObjectMapper objectMapper, SpringDocConfigProperties springDocConfigProperties) Sort output.com.fasterxml.jackson.databind.ObjectMapper
Yaml mapper object mapper.Methods inherited from class io.swagger.v3.core.util.ObjectMapperFactory
buildStrictGenericObjectMapper, create, createJson, createJson, createJson31, createJson31, createJsonConverter, createYaml, createYaml, createYaml, createYaml31, createYaml31
-
Constructor Details
-
ObjectMapperProvider
Instantiates a new Spring doc object mapper.- Parameters:
springDocConfigProperties
- the spring doc config properties
-
-
Method Details
-
createJson
public static com.fasterxml.jackson.databind.ObjectMapper createJson(SpringDocConfigProperties springDocConfigProperties) Create json object mapper.- Parameters:
springDocConfigProperties
- the spring doc config properties- Returns:
- the object mapper
-
sortOutput
public static void sortOutput(com.fasterxml.jackson.databind.ObjectMapper objectMapper, SpringDocConfigProperties springDocConfigProperties) Sort output.- Parameters:
objectMapper
- the object mapper
-
jsonMapper
public com.fasterxml.jackson.databind.ObjectMapper jsonMapper()Mapper object mapper.- Returns:
- the object mapper
-
yamlMapper
public com.fasterxml.jackson.databind.ObjectMapper yamlMapper()Yaml mapper object mapper.- Returns:
- the object mapper
-