WebAPIContrib.Core icon indicating copy to clipboard operation
WebAPIContrib.Core copied to clipboard

CsvOutputFormatter only works for IEnumerable objects

Open twsouthwick opened this issue 5 years ago • 1 comments

Looks like there is a check for if a result is IEnumerable while determining if the formatter applies. Is there a reason to require this? Can it just output an item in a single list?

twsouthwick avatar Apr 02 '20 20:04 twsouthwick

This might be related to my pull request, which allows non-IEnumerable<T> results to still produce a header row. See https://github.com/WebApiContrib/WebAPIContrib.Core/pull/204

preeder avatar Apr 10 '20 03:04 preeder