4 ms·
From the YAML spec[1]: > Three dots ( “...”) indicate the end of a document without starting a new one, for use in communication channels [1] https://yaml.org
by jw1224 8y ago
From the YAML spec[1]:
> Three dots ( “...”) indicate the end of a document without starting a new one, for use in communication channels
[1] https://yaml.org/spec/1.2/spec.html#id2760395 https://yaml.org/spec/1.2/spec.html#id2760395
- onion2k 8y agoThree dots indicates the end of a block, not a document. Look at Example 2.8 in your link. If the user sends; --- time: 20:03:20 player: Sammy Sosa action: strike (miss) ... .. you can't know if they actually meant to send .. --- time: 20:03:20 player: Sammy Sosa action: strike (miss) ... --- time: 20:03:47 player: Sammy Sosa action: grand slam ... Also, in my experience, which is mostly limited to Ansible config because I prefer JSON, I've never seen three dots in the wild. I don't think devops people like them.
- calibas 8y agoThey mark the end of a YML "document", but not the end of a YML "stream", which can contain multiple documents. It's the terminology that's causing confusion.
- ams6110 8y agoThat's interesting, I have always seen the three dots as the first line in a YAML file, my exposure to YAML being almost exclusively Ansible configurations.