DumpSettingsBuilder

Builder pattern implementation for DumpSettings

Functions

Link copied to clipboard

Create immutable DumpSettings

Link copied to clipboard

Define anchor name generator (by default 'id' + number)

Link copied to clipboard

If the YAML is created for another platform (for instance on Windows to be consumed under Linux) than this setting is used to define the line ending. The platform line end is used by default.

Link copied to clipboard

Enforce canonical representation

Link copied to clipboard

Custom property is the way to give some runtime parameters to be used during dumping

Link copied to clipboard

Define flow style

Link copied to clipboard

Define default scalar style

Link copied to clipboard

Set to true to add comments from Nodes to

Link copied to clipboard

Add '...' in the end of the document

Link copied to clipboard

Define root Tag or let the tag to be detected automatically

Link copied to clipboard

Add '---' in the beginning of the document

Link copied to clipboard

Define the amount of the spaces for the indent in the block flow style. Default is 2.

Link copied to clipboard

Set to true to add the indent for sequences to the general indent

Link copied to clipboard

Adds the specified indent for sequence indicator in the block flow. Default is 0.

Link copied to clipboard

Define max key length to use simple key (without ?). More info

Link copied to clipboard

Use pretty flow style when every value in the flow context gets a separate line.

Link copied to clipboard

When String object contains non-printable characters, they are escaped with \\u or \\x notation. Sometimes it is better to transform this data to binary (with the !!binary tag). String objects with printable data are non affected by this setting.

Link copied to clipboard

Define whether to split long lines

Link copied to clipboard
Link copied to clipboard

Specify whether to emit non-ASCII printable Unicode characters (emit Unicode char or escape sequence starting with '\\u') The default value is true. When set to false then printable non-ASCII characters (Cyrillic, Chinese etc) will be not printed but escaped (to support ASCII terminals)

Link copied to clipboard

Set max width for literal scalars. When the scalar representation takes more then the preferred with the scalar will be split into a few lines. The default is 80.

Link copied to clipboard