Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: added ValidationApiExceptionDestructurer and unit tests. #791

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

DavidRogersDev
Copy link

Background

On a project which I am working on, we noticed that Bearer tokens were being logged to Seq with Refit exceptions, despite the fact that we were using the ApiExceptionDestructurer. On a closer inspection, we discovered that it was a ValidationApiException which Refit was throwing and this was not covered by the ApiExceptionDestructurer.

After discussing whether to change the ApiExceptionDestructurer or create a new destructurer, we settled on that, making it easy to mix and match the destructurers to suit an API's needs.

To that end, I'm submitting this PR to add the ValidationApiExceptionDestructurer to handle ValidationApiExceptions thrown by Refit.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant