Thursday, 15 October 2020

Yaml

  • Yaml ain't markup language
  • extn can be either yaml or yml
  • Human readable & intuitive
  • writing Configuration 
  • Searialization language - 
  • Data structure
    • Line separation & spaces with indentation 
  • Key value pair
    • separated by :
    • comments start with #
    • Object
      • indent the value pair and close in Object name
    • lists
      • - on the first child attribute for every list element(for objects)
      • [] can be used for primitive types
      • | for multi line string
    • env variables
      •  $<variable name>
    • Place holders
      • {{ }}
      • values will be replaced with template generator
    • multiple yaml documents
      • ---   to separate

No comments:

Post a Comment