decorators-squad / decorators-squad/eo-yaml
Comment in a Stream of Mapping
Open
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
Assessment
This issue has not been assessed yet.