Skip to content

Conversation

@wolveix
Copy link
Collaborator

@wolveix wolveix commented Jan 17, 2026

#944 was merged as a successor to the original intention of this PR.


This PR enables recursion for findInType for findHeaders and findParams. I'm still exploring the implications of doing this, though my initial findings don't turn up anything negative. The main purpose of this is to allow named fields in input and output structs, which have been requested features for quite some time.

This PR:

We previously only iterated over struct fields if the struct belonged to a slice. We now iterate all struct fields regardless of whether it's a single object or part of a slice.
@codecov
Copy link

codecov bot commented Jan 17, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 92.62%. Comparing base (88c6cda) to head (2d5d9b3).

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #943   +/-   ##
=======================================
  Coverage   92.62%   92.62%           
=======================================
  Files          23       23           
  Lines        4499     4504    +5     
=======================================
+ Hits         4167     4172    +5     
  Misses        274      274           
  Partials       58       58           

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

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@wolveix wolveix marked this pull request as draft January 17, 2026 21:07
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.

Unable to create a wrapper func that also requires the *http.Request object Nested header on input

2 participants