Class SchemaSerializer
java.lang.Object
com.fasterxml.jackson.databind.JsonSerializer<io.swagger.v3.oas.models.media.Schema>
io.micronaut.openapi.swagger.core.jackson.SchemaSerializer
- All Implemented Interfaces:
com.fasterxml.jackson.databind.jsonFormatVisitors.JsonFormatVisitable
,com.fasterxml.jackson.databind.ser.ResolvableSerializer
public class SchemaSerializer
extends com.fasterxml.jackson.databind.JsonSerializer<io.swagger.v3.oas.models.media.Schema>
implements com.fasterxml.jackson.databind.ser.ResolvableSerializer
This class is copied from swagger-core library.
- Since:
- 4.6.0
-
Nested Class Summary
Nested classes/interfaces inherited from class com.fasterxml.jackson.databind.JsonSerializer
com.fasterxml.jackson.databind.JsonSerializer.None
-
Constructor Summary
ConstructorDescriptionSchemaSerializer
(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
-
SchemaSerializer
-
-
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.media.Schema value, 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.media.Schema>
- Throws:
IOException
-