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

    Constructors
    Constructor
    Description
    SchemaSerializer(com.fasterxml.jackson.databind.JsonSerializer<Object> serializer)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    resolve(com.fasterxml.jackson.databind.SerializerProvider serializerProvider)
     
    void
    serialize(io.swagger.v3.oas.models.media.Schema value, com.fasterxml.jackson.core.JsonGenerator jgen, com.fasterxml.jackson.databind.SerializerProvider provider)
     

    Methods inherited from class com.fasterxml.jackson.databind.JsonSerializer

    acceptJsonFormatVisitor, getDelegatee, handledType, isEmpty, isEmpty, isUnwrappingSerializer, properties, replaceDelegatee, serializeWithType, unwrappingSerializer, usesObjectId, withFilterId, withIgnoredProperties

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • SchemaSerializer

      public SchemaSerializer(com.fasterxml.jackson.databind.JsonSerializer<Object> serializer)
  • Method Details

    • resolve

      public void resolve(com.fasterxml.jackson.databind.SerializerProvider serializerProvider) throws com.fasterxml.jackson.databind.JsonMappingException
      Specified by:
      resolve in interface com.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 class com.fasterxml.jackson.databind.JsonSerializer<io.swagger.v3.oas.models.media.Schema>
      Throws:
      IOException