OptionalblockOptionalcollectionEnforce 'block' or 'flow' style on maps and sequences.
Empty collections will always be stringified as {} or [].
Default: 'any', allowing each node to set its style separately
with its flow: boolean (default false) property.
OptionalcommentComment stringifier. Output should be valid for the current schema.
By default, empty comment lines are left empty,
lines consisting of a single space are replaced by #,
and all other lines are prefixed with a #.
OptionaldefaultThe default type of string literal used to stringify implicit key values. Output may use other types if required to fully represent the value.
If null, the value of defaultStringType is used.
Default: null
OptionaldefaultThe default type of string literal used to stringify values in general. Output may use other types if required to fully represent the value.
Default: 'PLAIN'
OptionaldirectivesInclude directives in the output.
true, at least the document-start marker --- is always included.
This does not force the %YAML directive to be included. To do that,
set doc.directives.yaml.explicit = true.false, no directives or marker is ever included. If using the %TAG
directive, you are expected to include it manually in the stream before
its use.null, directives and marker may be included if required.Default: null
OptionaldoubleRestrict double-quoted strings to use JSON-compatible syntax.
Default: false
OptionaldoubleMinimum length for double-quoted strings to use multiple lines to
represent the value. Ignored if doubleQuotedAsJSON is set.
Default: 40
OptionalfalseString representation for false.
With the core schema, use 'false', 'False', or 'FALSE'.
Default: 'false'
OptionalflowWhen true, a single space of padding will be added inside the delimiters of non-empty single-line flow collections.
Default: true
OptionalindentThe number of spaces to use when indenting code.
Default: 2
OptionalindentWhether block sequences should be indented.
Default: true
OptionallineMaximum line width (set to 0 to disable folding).
This is a soft limit, as only double-quoted semantics allow for inserting
a line break in the middle of a word, as well as being influenced by the
minContentWidth option.
Default: 80
OptionalminMinimum line width for highly-indented content (set to 0 to disable).
Default: 20
OptionalnullString representation for null.
With the core schema, use 'null', 'Null', 'NULL', '~', or an empty
string ''.
Default: 'null'
OptionalsimpleRequire keys to be scalars and to use implicit rather than explicit notation.
Default: false
OptionalsingleUse 'single quote' rather than "double quote" where applicable.
Set to false to disable single quotes completely.
Default: null
OptionaltrueString representation for true.
With the core schema, use 'true', 'True', or 'TRUE'.
Default: 'true'
OptionalverifyThe anchor used by an alias must be defined before the alias node. As it's possible for the document to be modified manually, the order may be verified during stringification.
Default: 'true'
Use block quote styles for scalar values where applicable. Set to
falseto disable block quotes completely.Default:
true