decorators-squad / decorators-squad/eo-yaml

Comment in a Stream of Mapping

Open
#339 8 comments 0 reactions 0 assignees View on GitHub
bug help wanted
Dominant language
Java
Stars
272
Forks
55
PR merge metrics
No merged PRs in 30d

Description

Hi,

Is the following Yaml valid?

```
---
# Comment
name: "eo-yaml"
version: 4.3.5
```

When I write it:

```
YamlNode node = Yaml.createYamlMappingBuilder()
.add("name", "eo-yaml")
.add("version", "4.3.5")
.build("Comment");
YamlStream expected = Yaml.createYamlStreamBuilder()
.add(node)
.build();
System.out.println(expected);
```

The comment does not appear:

```
---
name: "eo-yaml"
version: 4.3.5
```

Am I writing this Yaml wrong or maybe it is a little bug?

Thanks.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.