Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: support embedded raw body fields #666

Merged
merged 1 commit into from
Dec 4, 2024
Merged

Conversation

danielgtaylor
Copy link
Owner

This updates the handling of the raw body field index to match that of the body index (using a slice of field integers describing the path to the possibly embedded field). This makes it possible to use embedded structs with a RawBody field.

Fixes #652

@danielgtaylor danielgtaylor requested a review from Copilot December 4, 2024 07:05

Choose a reason for hiding this comment

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

Copilot reviewed 2 out of 2 changed files in this pull request and generated no suggestions.

Copy link

codecov bot commented Dec 4, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 92.76%. Comparing base (4b4221f) to head (7c050f1).
Report is 2 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #666   +/-   ##
=======================================
  Coverage   92.76%   92.76%           
=======================================
  Files          22       22           
  Lines        4905     4910    +5     
=======================================
+ Hits         4550     4555    +5     
  Misses        308      308           
  Partials       47       47           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@danielgtaylor danielgtaylor merged commit 0fefc6f into main Dec 4, 2024
7 checks passed
@danielgtaylor danielgtaylor deleted the raw-body-embed branch December 4, 2024 16:30
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.

Panic response when input having RawBody as multipart.Form in embedded struct
1 participant