Class ExampleSerializer
java.lang.Object
com.fasterxml.jackson.databind.JsonSerializer<io.swagger.v3.oas.models.examples.Example>
io.micronaut.openapi.swagger.core.jackson.ExampleSerializer
- All Implemented Interfaces:
com.fasterxml.jackson.databind.jsonFormatVisitors.JsonFormatVisitable
,com.fasterxml.jackson.databind.ser.ResolvableSerializer
public class ExampleSerializer
extends com.fasterxml.jackson.databind.JsonSerializer<io.swagger.v3.oas.models.examples.Example>
implements com.fasterxml.jackson.databind.ser.ResolvableSerializer
This class is copied from swagger-core library.
- Since:
- 5.0.0
-
Nested Class Summary
Nested classes/interfaces inherited from class com.fasterxml.jackson.databind.JsonSerializer
com.fasterxml.jackson.databind.JsonSerializer.None
-
Constructor Summary
ConstructorDescriptionExampleSerializer
(com.fasterxml.jackson.databind.JsonSerializer<Object> serializer) -
Method Summary
Methods inherited from class com.fasterxml.jackson.databind.JsonSerializer
acceptJsonFormatVisitor, getDelegatee, handledType, isEmpty, isEmpty, isUnwrappingSerializer, properties, replaceDelegatee, serializeWithType, unwrappingSerializer, usesObjectId, withFilterId, withIgnoredProperties
-
Constructor Details
-
ExampleSerializer
-
-
Method Details
-
resolve
public void resolve(com.fasterxml.jackson.databind.SerializerProvider serializerProvider) throws com.fasterxml.jackson.databind.JsonMappingException - Specified by:
resolve
in interfacecom.fasterxml.jackson.databind.ser.ResolvableSerializer
- Throws:
com.fasterxml.jackson.databind.JsonMappingException
-
serialize
public void serialize(io.swagger.v3.oas.models.examples.Example example, com.fasterxml.jackson.core.JsonGenerator jgen, com.fasterxml.jackson.databind.SerializerProvider provider) throws IOException - Specified by:
serialize
in classcom.fasterxml.jackson.databind.JsonSerializer<io.swagger.v3.oas.models.examples.Example>
- Throws:
IOException
-