Skip to content

fix: add YAML document separators when paginating (fixes #39)#50

Merged
jpoehnelt merged 1 commit intomainfrom
fix/yaml-pagination-separators
Mar 4, 2026
Merged

fix: add YAML document separators when paginating (fixes #39)#50
jpoehnelt merged 1 commit intomainfrom
fix/yaml-pagination-separators

Conversation

@jpoehnelt
Copy link
Copy Markdown
Member

Fixes #39

Problem

--page-all --format yaml emitted raw concatenated YAML pages without --- document separators, making the output invalid YAML (duplicate top-level keys).

Fix

Prefix every YAML page with ---\n in format_value_paginated, consistent with YAML's multi-document stream specification. This is analogous to how NDJSON is used for JSON pagination.

Tests

Added a test verifying both first and continuation pages start with ---.

@changeset-bot
Copy link
Copy Markdown

changeset-bot bot commented Mar 4, 2026

🦋 Changeset detected

Latest commit: 041ca75

The changes in this PR will be included in the next version bump.

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@gemini-code-assist
Copy link
Copy Markdown
Contributor

Warning

You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again!

@jpoehnelt jpoehnelt merged commit 173d155 into main Mar 4, 2026
21 checks passed
@jpoehnelt jpoehnelt deleted the fix/yaml-pagination-separators branch March 4, 2026 07:56
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.

bug: --page-all --format yaml produces invalid concatenated YAML (missing --- document separators)

1 participant