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

    Constructors
    Constructor
    Description
    ExampleSerializer(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.examples.Example example, 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

    • ExampleSerializer

      public ExampleSerializer(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.examples.Example example, 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.examples.Example>
      Throws:
      IOException