-
Notifications
You must be signed in to change notification settings - Fork 542
Introducing "downFields" for HCursor #2367
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
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
❗ Your organization needs to install the Codecov GitHub app to enable full functionality. Additional details and impacted files@@ Coverage Diff @@
## series/0.14.x #2367 +/- ##
=================================================
- Coverage 82.57% 82.55% -0.02%
=================================================
Files 94 94
Lines 3712 3721 +9
Branches 590 619 +29
=================================================
+ Hits 3065 3072 +7
- Misses 647 649 +2
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Beautiful idea! Thank you! Co-authored-by: Darren Gibson <zarthross@users.noreply.github.com>
Co-authored-by: Darren Gibson <zarthross@users.noreply.github.com>
Co-authored-by: Darren Gibson <zarthross@users.noreply.github.com>
Hey!
I've been a delighted user of Circe for years now. Love it!
I keep observing the pattern that I often just want to fetch a field from some deeply nested value (sometimes even with a "dynamic path"). So, I'm thinking if we could perhaps add a method next to
downField
, nameddownFields
that would essentially achieve the following:I've attached my implementation and tests to prove it works.
Please consider it and let me know if additional discussion or work is needed.
Regards,
- Oto