Skip to content

Fix: !ignore tags in !merge and !flatten tags#23

Merged
ryodine merged 3 commits intomainfrom
fix/ignore-in-merge
Mar 16, 2026
Merged

Fix: !ignore tags in !merge and !flatten tags#23
ryodine merged 3 commits intomainfrom
fix/ignore-in-merge

Conversation

@ryodine
Copy link
Copy Markdown
Collaborator

@ryodine ryodine commented Mar 16, 2026

Fixes to be spec-compliant with dsillman2000/yaml-reference-specs#31

@ryodine ryodine marked this pull request as ready for review March 16, 2026 02:25
@ryodine ryodine requested a review from Copilot March 16, 2026 02:25
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Fixes !ignore tag handling inside !merge and !flatten tags by filtering out undefined values (produced by !ignore) during document processing.

Changes:

  • Filter out undefined items (from !ignore tags) in processParsedDocument for both Flatten and Merge nodes
  • Add test coverage for !ignore within !flatten and !merge sequences
  • Bump spec version badge from v0.2.8-0 to v0.2.8-1

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.

File Description
src/parser.ts Filter out undefined values when processing Flatten and Merge node items
test/resolver.test.ts Add tests for !ignore in !flatten and !merge contexts
README.md Update spec version badge to v0.2.8-1

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@ryodine ryodine requested a review from dsillman2000 March 16, 2026 02:28
Copy link
Copy Markdown
Owner

@dsillman2000 dsillman2000 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

🦖

@ryodine ryodine merged commit 0b461cc into main Mar 16, 2026
5 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.

3 participants