three hyphen in YAML file
Hi,
My understanding of "---" yaml file hyphens is, multiple documents within a single stream are separated by three hyphens
But I have seen in many example just in the beginning of the YAML file only they use three hyphens
If the same file use another document it, then they don't start with --- hyphens
example below
test.yaml
---
user::user_list:
name1:
id: 123
name2:
id: 456
occupation::emp_id
job:
designation: programer
So in this file we use two different thing one is for emp id detiais and the another is for job details,then why we didn't use "---" in between these, two like below
test.yaml
---
user::user_list:
name1:
id: 123
name2:
id: 456
---
occupation::emp_id
job:
designation: programer
Please correct me if my understanding is wrong