YAML Multi-Line Arrays

In YAML, you can easily create multi-line strings. However, I would like the ability to create a multi-line array (mainly for readibility within config files) using the | character. A YAML array can be represented as: [‘key1’, ‘key2’, ‘key3’]. A YAML sequence uses a dash followed by a space and then a string: – String1 … Read more

why — (3 dashes/hyphen) in yaml file?

So I just started using YAML file instead of application.properties as it is more readable. I see in YAML files they start with —. I googled and found the below explanation. YAML uses three dashes (“—”) to separate directives from document content. This also serves to signal the start of a document if no directives … Read more