refit
refit copied to clipboard
[NiceToHave]: Interface `IApiResponse<out T>` misses `[MemberNotNullWhen(true, nameof(Content))]` attribute
Describe the bug 🐞
Analyzer shows the warming for the IApiResponse<out T>.Content property after checking IsSuccessStatusCode.
Step to reproduce
- Return
IApiResponse<T>from the method. - Call the method
- Check the response
IsSuccessStatusCode == true - See the error\warning
Reproduction repository
https://github.com/reactiveui/refit
Expected behavior
Analyzer should consider Content as not null after checking IsSuccessStatusCode for true
Screenshots 🖼️
IDE
No response
Operating system
Windows
Version
11
Device
No response
Refit Version
7.0.0
Additional information ℹ️
No response