Skip to content

OpenApiResponseWithBody - Does not handle classes with IImmutableList #245

@torepaulsson

Description

@torepaulsson

Hi,
This is really a great extension, just tried it out and will use it on all the azure functions we have! I noticed that there was a problem rendering the response body of a class when it has a property type of IImmutableList. I tried changing to IList and that works fine.

public class ResponseDto{
   public ImmutableList<some class> List {get;}
}

renders just an empty class like so:

{
   "list": {}
}

It would be great to add support for IImmutableList!

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions