Skip to content

BackedEnum normalization - #22

Merged
andrepimpao merged 4 commits into
3.xfrom
PAS-16-backed-enum-normalization
Aug 1, 2026
Merged

BackedEnum normalization#22
andrepimpao merged 4 commits into
3.xfrom
PAS-16-backed-enum-normalization

Conversation

@andrepimpao

Copy link
Copy Markdown
Contributor

Summary

  • Normalize string- and integer-backed enums in query parameters and headers.
  • Support nested query values, header lists, API defaults, endpoint options, and direct Api::send() calls.
  • Convert enum-backed header values to strings for PSR-7 compatibility.
  • Preserve existing query behavior for null, false, 0, and empty strings.
  • Document backed-enum support as available from version 3.1.0.

Reviewer Notes

Normalization occurs after API defaults and endpoint options are merged, providing consistent behavior at the shared transport boundary. A strict request-factory fixture verifies that integer-backed header values do not rely on permissive PSR-7 implementations.

@andrepimpao
andrepimpao merged commit bf3bc31 into 3.x Aug 1, 2026
5 checks passed
@andrepimpao
andrepimpao deleted the PAS-16-backed-enum-normalization branch August 1, 2026 13:11
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.

1 participant