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 have an API that returns a problem details when supplied inputs fail validation
I have a razor page application using the refit library to make api calls.
When the application posts data with invalid inputs an ApiException is caught, but not a ValidationApiException. If the ApiException has a content type "application/problem+json", a ValidationApiException should be thrown?
Describe the bug 🐞
A bug happened!
I have an API that returns a problem details when supplied inputs fail validation
I have a razor page application using the refit library to make api calls.
When the application posts data with invalid inputs an ApiException is caught, but not a ValidationApiException. If the ApiException has a content type "application/problem+json", a ValidationApiException should be thrown?
Step to reproduce
Reproduction repository
https://github.com/reactiveui/refit
Expected behavior
This should happen...
A ValidationException should be thrown with a content type application/problem+json
Screenshots 🖼️
No response
IDE
Visual Studio 2022
Operating system
Windows
Version
11
Device
No response
Refit Version
Refit.HttpClientFactory 7.0.0
Additional information ℹ️
No response
The text was updated successfully, but these errors were encountered: