Skip to content
This repository was archived by the owner on Apr 1, 2025. It is now read-only.
This repository was archived by the owner on Apr 1, 2025. It is now read-only.

question about the yaml sequences indent #779

@chenzhiwei

Description

@chenzhiwei

When marshal from an object, this library will generate sequences in following format:

--- m dump:
a: Easy!
b:
  c: 2
  d:
  - 3
  - 4

But according to yaml spec: https://yaml.org/spec/1.2/#id2797382

The format seems to be:

--- m dump:
a: Easy!
b:
  c: 2
  d:
    - 3
    - 4

Is there any background on this?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions