YAML Syntax

  • Always start your YAML file with three dashes.
    • if you have only one script okay. Three dashes are not required.
    • But if you're running multiple YAML scripts so this acts as a boundary.
  • The Mapping syntax in Key:  value (space after the value is very crucial)
    • Mapping is nothing, but it's a dictionary.
  • YAML supports different data types such as characters, strings, integers, floating value and collection like arrays lists that that are constructed from basic data types.
  • YAML also supports 
    • Lists, 
    • Nested Lists and 
    • Nested Dictionary
    •  

 

 

 


Related Question