Class CollectionModelContentConverter

java.lang.Object
org.springdoc.core.converters.CollectionModelContentConverter
All Implemented Interfaces:
io.swagger.v3.core.converter.ModelConverter

public class CollectionModelContentConverter extends Object implements io.swagger.v3.core.converter.ModelConverter
Override resolved schema as there is a custom serializer that converts the data to a map before serializing it.
Author:
bnasslahsen
See Also:
  • Jackson2HalModule.HalResourcesSerializer
  • org.springframework.hateoas.mediatype.hal.Jackson2HalModule.HalResourcesSerializer#serialize(Collection, JsonGenerator, SerializerProvider)org.springframework.hateoas.mediatype.hal.Jackson2HalModule.HalResourcesSerializer#serialize(Collection, JsonGenerator, SerializerProvider)org.springframework.hateoas.mediatype.hal.Jackson2HalModule.HalResourcesSerializer#serialize(Collection, JsonGenerator, SerializerProvider)org.springframework.hateoas.mediatype.hal.Jackson2HalModule.HalResourcesSerializer#serialize(Collection, JsonGenerator, SerializerProvider)
  • Constructor Summary

    Constructors
    Constructor
    Description
    CollectionModelContentConverter(org.springframework.hateoas.server.LinkRelationProvider linkRelationProvider)
    Instantiates a new Collection model content converter.
  • Method Summary

    Modifier and Type
    Method
    Description
    io.swagger.v3.oas.models.media.Schema<?>
    resolve(io.swagger.v3.core.converter.AnnotatedType type, io.swagger.v3.core.converter.ModelConverterContext context, Iterator<io.swagger.v3.core.converter.ModelConverter> chain)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface io.swagger.v3.core.converter.ModelConverter

    isOpenapi31
  • Constructor Details

    • CollectionModelContentConverter

      public CollectionModelContentConverter(org.springframework.hateoas.server.LinkRelationProvider linkRelationProvider)
      Instantiates a new Collection model content converter.
      Parameters:
      linkRelationProvider - the link relation provider
  • Method Details

    • resolve

      public io.swagger.v3.oas.models.media.Schema<?> resolve(io.swagger.v3.core.converter.AnnotatedType type, io.swagger.v3.core.converter.ModelConverterContext context, Iterator<io.swagger.v3.core.converter.ModelConverter> chain)
      Specified by:
      resolve in interface io.swagger.v3.core.converter.ModelConverter