Skip to content

honor SkipPrune even when filter ran#81

Merged
cubahno merged 1 commit into
mainfrom
ig/fix-prune
May 11, 2026
Merged

honor SkipPrune even when filter ran#81
cubahno merged 1 commit into
mainfrom
ig/fix-prune

Conversation

@cubahno
Copy link
Copy Markdown
Collaborator

@cubahno cubahno commented May 11, 2026

CreateDocument currently force-runs pruneSchema whenever the filter matched anything, ignoring cfg.SkipPrune.

That breaks callers that need the filter (to narrow paths) but want the rest of the document left intact - e.g. tools that re-render the document to YAML and feed it to a downstream parser.

@cubahno cubahno marked this pull request as ready for review May 11, 2026 12:27
@cubahno cubahno merged commit bc0e8f6 into main May 11, 2026
3 checks passed
@cubahno cubahno deleted the ig/fix-prune branch May 11, 2026 12:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant