Class 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)
    • Constructor Detail

      • CollectionModelContentConverter

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

      • 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