Skip to content

Add ListRef option to return lists with implicit/explicit metadata#44

Merged
rjrodger merged 1 commit intomasterfrom
claude/add-text-info-option-CHsOq
Mar 1, 2026
Merged

Add ListRef option to return lists with implicit/explicit metadata#44
rjrodger merged 1 commit intomasterfrom
claude/add-text-info-option-CHsOq

Conversation

@rjrodger
Copy link
Collaborator

@rjrodger rjrodger commented Mar 1, 2026

No description provided.

Define a ListRef struct with Val ([]any) and Implicit (bool) fields.
When the ListRef option is enabled, list values in the output are
wrapped in ListRef instead of plain []any slices. The Implicit flag
is true for lists created without brackets (comma-separated or
space-separated values) and false for explicit bracket-delimited
lists. The option is off by default.

Also updates deepMerge and deepClone in utility.go to handle
ListRef so that the extension (deep merge) feature works correctly
when ListRef is enabled.

Includes 21 unit tests covering explicit/implicit lists, nesting,
maps, scalars, deep merge, combined with TextInfo, and more.

https://claude.ai/code/session_01DmZRT53cbEtiRzmrhYQdfv
@rjrodger rjrodger merged commit 8f517d4 into master Mar 1, 2026
5 of 7 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