Skip to content

IEnumerable<T> not handled #218

@guyrt

Description

@guyrt

Common practice is to define a class like this

public sealed class Pizza
{
   public IEnumerable<string> Toppings { get; set; }

   public string Size {get; set;}
}

Typechat.net will fail on the IEnumerable with the argument System.ArgumentException: 'IEnumerable`1 must be a class'. JSON serdes in .net know to model the IEnumerable as a JSON array. Can typechat do the same?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions