Expected NoContentResult Throws ApiException due to null object #5063
kccarter76
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
NoContentResult will always deserialize as a null and the template generation should return a new NoContentResult() when the status code is 204.
the following is a screen shot of what NSwag Studio is generating:
the following is the code that should be generated for this use case.
if you need the qualifying name space it is Microsoft.AspNetCore.Mvc
Beta Was this translation helpful? Give feedback.
All reactions