See the middleware version
/api/values/Squareroot/-1 returns the generic type and title
{"type":"https://tools.ietf.org/html/rfc7231#section-6.5.1","title":"Bad Request",
not the type and title that's set
{"type":"https://en.wikipedia.org/wiki/Square_root","title":"Wrong Input"
When I Customize problem details with CustomizeProblemDetails see also source code
the API controller returns the correct problem details.
When I step through the middleware version in the debugger, everything is set correctly.
@sammychinedu2ky
See the middleware version
/api/values/Squareroot/-1returns the generic type and title{"type":"https://tools.ietf.org/html/rfc7231#section-6.5.1","title":"Bad Request",not the type and title that's set
{"type":"https://en.wikipedia.org/wiki/Square_root","title":"Wrong Input"When I Customize problem details with CustomizeProblemDetails see also source code
the API controller returns the correct problem details.
When I step through the middleware version in the debugger, everything is set correctly.
@sammychinedu2ky