You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am attempting to work around the issues reported in #135 and #133 by using AutoWrapper 4.5 w/ the ProblemDetails response. However, I am running into issues with that configuration. Specifically, when the .NET stack / middleware returns ProblemDetails rather than my own controller code, the response is malformed.
You can reproduce this with the following steps.
From the command line:
dotnet --version
6.0.101
mkdir autowrapper-problemdetails-issue
cd autowrapper-problemdetails-issue/
dotnet new webapi
dotnet add package AutoWrapper.Core --version 4.5.0
I am attempting to work around the issues reported in #135 and #133 by using AutoWrapper 4.5 w/ the
ProblemDetails
response. However, I am running into issues with that configuration. Specifically, when the .NET stack / middleware returnsProblemDetails
rather than my own controller code, the response is malformed.You can reproduce this with the following steps.
From the command line:
dotnet --version 6.0.101 mkdir autowrapper-problemdetails-issue cd autowrapper-problemdetails-issue/ dotnet new webapi dotnet add package AutoWrapper.Core --version 4.5.0
Edit
Program.cs
and add:Edit
WeatherForecastController.cs
and add:Example 1 - response is malformed
Example 2 - response is malformed
Thanks in advance for your guidance!
The text was updated successfully, but these errors were encountered: