Generics not recognized well with OpenApiResponseWithBodyAttribute
See original GitHub issueWhen using OpenApiResponseWithBody
on 2 different methods with a generic MyResponse<int>
and then MyResponse<string>
, the UI doesn’t render. Also, if only used on one method, the properties of MyResponse
do not show in the Models section.
Issue Analytics
- State:
- Created 3 years ago
- Comments:8 (3 by maintainers)
Top Results From Across the Web
Why Azure function not working with Generics?
I have a requirement that I have to use TEntity with the class. But Azure function not working when using Generics with class....
Read more >Why Azure function not working with Generics? · Issue #735
I have a requirement that I have to use TEntity with the class. But Azure function not working when using Generics with class....
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Hello, with a generic type it’s working now. Here I am having a problem when there are two generic types.
it works:
Response<T>
It does not work:
Response<IEnumerable<T>>
thanks @justinyoo . I’ve already changed my object structure since i was under a timeline crunch, but if it works for the sample, then i’ll eventually migrate back to my old setup. Thanks for the fix!