gavv / gavv/httpexpect

rfc 9457 error bodies

Open
#475 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Go
Stars
2.7k
Forks
241
PR merge metrics
No merged PRs in 30d

Description

RFC 9457 defines the "application/problem+json" media type: https://www.rfc-editor.org/rfc/rfc9457.html#section-1-6

Using `JSON` on a httpexpect.Response that contains an error response according to RFC 9457 fails, as it does not expect this media type.

Can we have support for working with this somehow?

Contributor guide

No contributing guide indexed for this repository

Research direction

Start at JSON on httpexpect.Response and review how it checks response media types against RFC 9457's application/problem+json. Determine the supported interaction and verify that RFC 9457 error responses can be handled without the current media-type failure.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
api, testing
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.