Skip to content

OpenApiResponseWithBody - Does not handle classes with IImmutableList #245

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
torepaulsson opened this issue Sep 23, 2021 · 3 comments · Fixed by #247
Closed

OpenApiResponseWithBody - Does not handle classes with IImmutableList #245

torepaulsson opened this issue Sep 23, 2021 · 3 comments · Fixed by #247
Labels
bug Something isn't working

Comments

@torepaulsson
Copy link

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!

@justinyoo
Copy link
Contributor

@torepaulsson Thanks for the issue! I'll take a look.

@justinyoo
Copy link
Contributor

@torepaulsson I hope this PR #247 sorts out your issue. Please wait for the 0.9.0-preview release!

@torepaulsson
Copy link
Author

That was very quick, thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
2 participants