-
Notifications
You must be signed in to change notification settings - Fork 851
Labels
Area-LibraryIssues for FSharp.Core not covered elsewhereIssues for FSharp.Core not covered elsewhereFeature Improvementgood first issuehelp wanted
Milestone
Description
Seq.empty<MyType> renders as the string "EmptyEnumerable" when fed through AspNetCore 8 ObjectResult
The same does not happen for Seq.choose and other such functions when they yield an empty sequence, as they yield a different internal impl type wrapping their output, which in my context winds up producing [] as required
Expected behavior
render as []
Actual behavior
renders as "EmptyEnumerable"
Known workarounds
use Array.empty<MyType> instead
Related information
- happen to be using JSON.NET and a random mix of middlewares and don't have time to root cause deeper, but it surprised me
MyTypehas a JsonConverter registered- Did not yet try with
System.Linq.Enumerable.Empty<MyType>()
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
Area-LibraryIssues for FSharp.Core not covered elsewhereIssues for FSharp.Core not covered elsewhereFeature Improvementgood first issuehelp wanted
Type
Projects
Status
New