Skip to content

HttpMessageConverter#write should support typed collections [SPR-13467] #18046

@spring-projects-issues

Description

@spring-projects-issues

Olivier Sambourg opened SPR-13467 and commented

I'm trying to implement a CsvHttpMessageConverter using jackson-dataformat-csv, for writing only. The problem is that I need to output the CSV headers (even when there is no data) so I need to build a CsvSchema, but I don't have access to the type of objects in the collection.

#13028 solved this for read(), same thing for write() would be just perfect (if possible).


Affects: 4.0.9

Issue Links:

Metadata

Metadata

Assignees

No one assigned

    Labels

    in: webIssues in web modules (web, webmvc, webflux, websocket)status: bulk-closedAn outdated, unresolved issue that's closed in bulk as part of a cleaning process

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions