Skip to content

Support RFC 9457 Problem Details for HTTP APIs #1

@fako1024

Description

@fako1024

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)

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions