Skip to content

Cannot generate auto encoder for System.Collections.Generic.IEnumerable #10

@MarneeDear

Description

@MarneeDear

I am getting this error:

Cannot generate auto encoder for System.Collections.Generic.IEnumerable`1[[System.String,
		System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]]. Please pass an
		extra encoder.</h3>

There was a similar error reported in Thoth.Json:

thoth-org/Thoth.Json#26

Maybe that same resolution can also be pulled into Thoth.Json.Giraffe? Or I am doing something wrong?

I have added Thoth.Json.Giraffe as my serializer like this:

services.AddSingleton<Giraffe.Serialization.Json.IJsonSerializer>(Thoth.Json.Giraffe.ThothSerializer())

My workaround was to make sure all collection types were list, which is fine with me.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions