Skip to content

Consolidate duplicate _with_custom_depth serialization methods#11

Merged
johngallagher merged 1 commit into
claude/fix-code-smells-o11wKfrom
claude/consolidate-serializers-o11wK
Mar 9, 2026
Merged

Consolidate duplicate _with_custom_depth serialization methods#11
johngallagher merged 1 commit into
claude/fix-code-smells-o11wKfrom
claude/consolidate-serializers-o11wK

Conversation

@johngallagher

Copy link
Copy Markdown
Contributor

Removes the four *_with_custom_depth methods and merges their logic into the main serialization methods via an optional max_depth parameter, eliminating the duplication.

The four *_with_custom_depth methods (serialize_argument, serialize_hash,
serialize_array, serialize_object) were near-identical copies of the base
methods, differing only in whether max_depth was computed from config or
passed explicitly.

Unified into a single family using an optional max_depth parameter (nil =
compute from config, value = use as-is and propagate down). Removes ~65
lines of duplicated code.

https://claude.ai/code/session_01KWZUse79XR68i6nGa8VgTu
@johngallagher johngallagher merged commit bdcc2a9 into claude/fix-code-smells-o11wK Mar 9, 2026
23 checks passed
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.

2 participants