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

Support RFC 9457 Problem Details for HTTP APIs #1

Open
2 tasks done
fako1024 opened this issue Oct 26, 2024 · 0 comments · May be fixed by #2
Open
2 tasks done

Support RFC 9457 Problem Details for HTTP APIs #1

fako1024 opened this issue Oct 26, 2024 · 0 comments · May be fixed by #2
Assignees
Labels
enhancement New feature or request

Comments

@fako1024
Copy link
Owner

fako1024 commented Oct 26, 2024

When using frameworks like Huma it seems that the error handling in place does not extract the provided information in case of e.g. 422 errors (treating it as error correctly, but not extracting the error details from the response body. Example:

Content-Type: application/problem+json
{"$schema":"http://localhost:8145/schemas/ErrorModel.json","title":"Unprocessable Entity","status":422,"detail":"validation failed","errors":[{"message":"expected object","location":"body.commonAnnotations"}]}

DoD

  • Implement parsing of RFC 9457 errors
  • Add Test(s)
@fako1024 fako1024 added the enhancement New feature or request label Oct 26, 2024
@fako1024 fako1024 self-assigned this Oct 26, 2024
@fako1024 fako1024 linked a pull request Oct 26, 2024 that will close this issue
@fako1024 fako1024 linked a pull request Oct 26, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant