Skip to main content

Showing category results for YAML

Posts

0 comments 0 reactions

How to Write a Number in YAML

Jagdish Kumawat

In YAML, a number is written as it is, without quotes: 3 or 12.5. In quotes, the same digits are text.

  • Programming
  • YAML
0 comments 0 reactions

How to Write a Comment in YAML

Jagdish Kumawat

In YAML, # starts a comment: everything after it on that line is a note that programs skip.

  • Programming
  • YAML
0 comments 0 reactions

How to Write true and false in YAML

Jagdish Kumawat

YAML reads true and false, written without quotes, as booleans: values that are either on or off.

  • Programming
  • YAML
0 comments 0 reactions

How to Write a String in Double Quotes in YAML

Jagdish Kumawat

Put a YAML value in double quotes when it contains characters such as a colon and a space, so YAML reads it as plain text.

  • Programming
  • YAML
0 comments 0 reactions

How to Write a List of Objects in YAML

Jagdish Kumawat

In a YAML list of objects, a dash starts each object, and its other keys line up under its first key.

  • Programming
  • YAML
0 comments 0 reactions

How to Write a List in YAML

Jagdish Kumawat

Write a YAML list as a key followed by one item per line, each after a dash and a space.

  • Programming
  • YAML
0 comments 0 reactions

How to Nest Keys in YAML with Indentation

Jagdish Kumawat

Indent keys under a parent key to nest them in YAML. Use spaces, and give every child of the same parent the same indent.

  • Programming
  • YAML
0 comments 0 reactions

How to Write a Key-Value Pair in YAML

Jagdish Kumawat

A YAML key-value pair is a key, a colon, a space and the value. One pair per line builds a whole YAML file.

  • Programming
  • YAML