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
The client-inbound section was 7 lines covering only the high-level
"no Accept negotiation, dispatch by Content-Type". Expanded to cover
the parts a reader actually needs when chasing a bug:
- the pipeline from response.Header through resolveConsumer to the
codegen-emitted operation Reader, with a small diagram;
- what the operation Reader actually does (status code dispatch,
consumer pick, body decode into the typed response struct);
- how resolveConsumer picks a consumer — the four mediatype.Lookup
tiers plus the "*/*" wildcard fallback;
- where Runtime.MatchSuffix lands (it's resolveConsumer's opt-in
surface), and how that interacts with the existing wildcard
fallback;
- the always-on alias bridge in this path: a server response with
Content-Type: text/yaml decodes via a consumer registered at
application/x-yaml or application/yaml regardless;
- the three failure modes — malformed Content-Type, no consumer
+ no wildcard, silent wildcard fallback through "*/*".
Refs the layered work that landed on fix/140-json-dialects.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Signed-off-by: Frederic BIDON <fredbi@yahoo.com>
0 commit comments