YAML
Scalars
Strings, numbers, booleans, null, and dates.
By EZ4Code Team
scalarstringnumber
Code
string: hello
quoted: "hello world"
single: 'it''s ok'
literal: |
line one
line two
folded: >
this folds
into one line
integer: 42
float: 3.14
boolean: true
null_value: null
date: 2024-01-15Explanation
YAML scalars are untyped at the syntax level and resolved to strings, numbers, booleans, null, or dates by the schema. The literal | indicator preserves newlines while the folded > indicator converts newlines to spaces. Quote strings when they could be misread as another type (yes, on, 1.0).