What are the Basic Components of YAML file?

Category: YAMLWhat are the Basic Components of YAML file?
Editor">Editor Staff asked 2 years ago

What are the Basic Components of YAML file?

1 Answers
Editor">Editor Staff answered 2 years ago

Basic types and syntax’s that are used in YAML file.
YAML file can be formatted into three types

  • Conventional Block format
  • Inline format
  • Folded Text format

Conventional Block format – The format that is followed in this is hyphen(-) and space(” “).

Inline format – It is delimited with comma(,) and space(” “).

 

Folded Text – It converts newlines to spaces and removes leading white spaces.

Example:

– {name: ExpSkill, founded: 1900}            or- name: ExpSkill  founded: 1900