Class AdditionalPropertiesDeserializer

java.lang.Object
tools.jackson.databind.ValueDeserializer<Object>
io.micronaut.openapi.swagger.core.jackson.AdditionalPropertiesDeserializer
All Implemented Interfaces:
tools.jackson.databind.deser.NullValueProvider

public class AdditionalPropertiesDeserializer extends tools.jackson.databind.ValueDeserializer<Object>
Custom deserializer to handle the polymorphic 'additionalProperties' field. It prevents IllegalArgumentException by converting JsonNode into Boolean or Schema BEFORE the setter is called.
  • Nested Class Summary

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

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

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    deserialize(tools.jackson.core.JsonParser p, tools.jackson.databind.DeserializationContext ctxt)
     

    Methods inherited from class tools.jackson.databind.ValueDeserializer

    createContextual, deserialize, deserializeWithType, deserializeWithType, findBackReference, getAbsentValue, getDelegatee, getEmptyAccessPattern, getEmptyValue, getKnownPropertyNames, getNullAccessPattern, getNullValue, getObjectIdReader, handledType, isCachable, logicalType, replaceDelegatee, resolve, supportsUpdate, unwrappingDeserializer

    Methods inherited from class Object

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

    • AdditionalPropertiesDeserializer

      public AdditionalPropertiesDeserializer()
  • Method Details

    • deserialize

      public Object deserialize(tools.jackson.core.JsonParser p, tools.jackson.databind.DeserializationContext ctxt) throws tools.jackson.core.JacksonException
      Specified by:
      deserialize in class tools.jackson.databind.ValueDeserializer<Object>
      Throws:
      tools.jackson.core.JacksonException