public class ObjectMapperProvider
extends io.swagger.v3.core.util.ObjectMapperFactory
| Constructor and Description |
|---|
ObjectMapperProvider(SpringDocConfigProperties springDocConfigProperties)
Instantiates a new Spring doc object mapper.
|
| Modifier and Type | Method and Description |
|---|---|
static com.fasterxml.jackson.databind.ObjectMapper |
createJson(SpringDocConfigProperties springDocConfigProperties)
Create json object mapper.
|
com.fasterxml.jackson.databind.ObjectMapper |
jsonMapper()
Mapper object mapper.
|
static void |
sortOutput(com.fasterxml.jackson.databind.ObjectMapper objectMapper,
SpringDocConfigProperties springDocConfigProperties)
Sort output.
|
com.fasterxml.jackson.databind.ObjectMapper |
yamlMapper()
Yaml mapper object mapper.
|
public ObjectMapperProvider(SpringDocConfigProperties springDocConfigProperties)
springDocConfigProperties - the spring doc config propertiespublic static com.fasterxml.jackson.databind.ObjectMapper createJson(SpringDocConfigProperties springDocConfigProperties)
springDocConfigProperties - the spring doc config propertiespublic static void sortOutput(com.fasterxml.jackson.databind.ObjectMapper objectMapper,
SpringDocConfigProperties springDocConfigProperties)
objectMapper - the object mapperpublic com.fasterxml.jackson.databind.ObjectMapper jsonMapper()
public com.fasterxml.jackson.databind.ObjectMapper yamlMapper()
Copyright © 2024. All rights reserved.