Skip to content

fix: select request content variants explicitly - #32

Merged
smiggleworth merged 1 commit into
mainfrom
fix/explicit-content-request-variant
Aug 24, 2026
Merged

fix: select request content variants explicitly#32
smiggleworth merged 1 commit into
mainfrom
fix/explicit-content-request-variant

Conversation

@smiggleworth

Copy link
Copy Markdown
Contributor

Closes #23.

Summary

  • add bodyMediaType to low-level and typed client calls
  • require explicit selection for multi-variant content() request bodies
  • retain automatic selection for single-variant request codecs
  • verify non-first selection is independent of declaration order
  • document ambiguous and unknown selectors as request failures

Validation

  • npm run check

No package version or publishing changes.

@smiggleworth
smiggleworth force-pushed the fix/explicit-content-request-variant branch from d714145 to 45ba799 Compare August 24, 2026 10:17
@smiggleworth
smiggleworth marked this pull request as ready for review August 24, 2026 10:17
Copilot AI lite review requested due to automatic review settings August 24, 2026 10:17

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@smiggleworth
smiggleworth merged commit 63548b6 into main Aug 24, 2026
3 checks passed
@smiggleworth
smiggleworth deleted the fix/explicit-content-request-variant branch August 24, 2026 10:19
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.

content() codec always encodes the first declared variant for request bodies, regardless of caller intent

2 participants