Skip to content

Fix misleading error message for lowerkey#426

Merged
quinnj merged 1 commit into
masterfrom
fix-414-lowerkey-error-message
Jan 14, 2026
Merged

Fix misleading error message for lowerkey#426
quinnj merged 1 commit into
masterfrom
fix-414-lowerkey-error-message

Conversation

@quinnj
Copy link
Copy Markdown
Member

@quinnj quinnj commented Jan 14, 2026

Summary

  • Fixes the error message in StructUtils.lowerkey to suggest the correct method signature

The current error message tells users to define StructUtils.lowerkey(::T), but the correct signature requires the JSONStyle argument: StructUtils.lowerkey(::JSON.JSONStyle, ::T).

Test plan

  • Existing tests pass
  • Verified the error message now shows the correct signature

Fixes #414

🤖 Generated with Claude Code

@codecov
Copy link
Copy Markdown

codecov Bot commented Jan 14, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 90.26%. Comparing base (7479829) to head (6630ae8).
⚠️ Report is 1 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master     #426   +/-   ##
=======================================
  Coverage   90.26%   90.26%           
=======================================
  Files           7        7           
  Lines        1366     1366           
=======================================
  Hits         1233     1233           
  Misses        133      133           

☔ 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.

@quinnj quinnj force-pushed the fix-414-lowerkey-error-message branch from 3cc21be to 71d7f74 Compare January 14, 2026 07:21
The error message now correctly suggests defining
`StructUtils.lowerkey(::JSON.JSONStyle, ::T)` instead of
`StructUtils.lowerkey(::T)` which doesn't work.

Fixes #414

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@quinnj quinnj force-pushed the fix-414-lowerkey-error-message branch from 71d7f74 to 6630ae8 Compare January 14, 2026 07:27
@quinnj quinnj merged commit c7130d7 into master Jan 14, 2026
9 checks passed
@quinnj quinnj deleted the fix-414-lowerkey-error-message branch January 14, 2026 07:27
quinnj referenced this pull request Jan 14, 2026
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
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.

Unhelpful error message for lowerkey

1 participant