Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Yaml] feature #59315 Add compact nested mapping support to Dumper #20510

Open
wants to merge 3 commits into
base: 7.3
Choose a base branch
from

Conversation

gr8b
Copy link

@gr8b gr8b commented Jan 4, 2025

Documentation update for YAML Dumper feature Yaml::DUMP_COMPACT_NESTED_MAPPING.

@gr8b gr8b requested a review from xabbuh as a code owner January 4, 2025 15:52
@carsonbot carsonbot added this to the 7.3 milestone Jan 4, 2025
@carsonbot carsonbot changed the title feature #59315 [Yaml] Add compact nested mapping support to Dumper [Yaml] feature #59315 Add compact nested mapping support to Dumper Jan 4, 2025
@xabbuh xabbuh linked an issue Jan 4, 2025 that may be closed by this pull request
Dumping Collection of Maps
~~~~~~~~~~~~~~~~~~~~~~~~~~

By default, the collection of maps uses a hyphen on a separate line as a delimiter.
Copy link
Member

Choose a reason for hiding this comment

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

Isn’t the same also true when dumping a collection of sequences?

Copy link
Author

Choose a reason for hiding this comment

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

Option do not affect dump of sequences. This code enables compact nested mappings only when dumped value is hash.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Yaml] Add compact nested mapping support to Dumper
3 participants