Class ExampleSerializer

java.lang.Object
tools.jackson.databind.ValueSerializer<io.swagger.v3.oas.models.examples.Example>
io.micronaut.openapi.swagger.core.jackson.ExampleSerializer
All Implemented Interfaces:
tools.jackson.databind.jsonFormatVisitors.JsonFormatVisitable

public class ExampleSerializer extends tools.jackson.databind.ValueSerializer<io.swagger.v3.oas.models.examples.Example>
This class is copied from swagger-core library.
Since:
5.0.0
  • Nested Class Summary

    Nested classes/interfaces inherited from class tools.jackson.databind.ValueSerializer

    tools.jackson.databind.ValueSerializer.None
  • Constructor Summary

    Constructors
    Constructor
    Description
    ExampleSerializer(tools.jackson.databind.ValueSerializer<Object> serializer)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    resolve(tools.jackson.databind.SerializationContext serializerProvider)
     
    void
    serialize(io.swagger.v3.oas.models.examples.Example example, tools.jackson.core.JsonGenerator jgen, tools.jackson.databind.SerializationContext provider)
     

    Methods inherited from class tools.jackson.databind.ValueSerializer

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

    Methods inherited from class Object

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

    • ExampleSerializer

      public ExampleSerializer(tools.jackson.databind.ValueSerializer<Object> serializer)
  • Method Details

    • resolve

      public void resolve(tools.jackson.databind.SerializationContext serializerProvider) throws tools.jackson.databind.DatabindException
      Overrides:
      resolve in class tools.jackson.databind.ValueSerializer<io.swagger.v3.oas.models.examples.Example>
      Throws:
      tools.jackson.databind.DatabindException
    • serialize

      public void serialize(io.swagger.v3.oas.models.examples.Example example, tools.jackson.core.JsonGenerator jgen, tools.jackson.databind.SerializationContext provider) throws tools.jackson.core.JacksonException
      Specified by:
      serialize in class tools.jackson.databind.ValueSerializer<io.swagger.v3.oas.models.examples.Example>
      Throws:
      tools.jackson.core.JacksonException