Getting started Community Training Tutorials Documentation APIs, AI & Tools
american:
- Boston Red Sox
- Detroit Tigers
- New York Yankees
national:
- New York Mets
- Chicago Cubs
- Atlanta Braves
MIME type: application/yaml
ID: yaml
Values in the YAML data format map one-to-one with DataWeave values. DataWeave natively supports all of the following YAML types:
String
Boolean
Number
Nil
Mapping
Sequences
This example shows how DataWeave represents YAML values.
The following YAML snippet serves as the input payload for the DataWeave source in this example.
american:
- Boston Red Sox
- Detroit Tigers
- New York Yankees
national:
- New York Mets
- Chicago Cubs
- Atlanta Braves
DataWeave supports the following configuration properties for this format.
This format accepts properties that provide instructions for reading input data.
| Parameter | Type | Default | Description |
|---|---|---|---|
|
|
|
Sets the maximum number of entity expansions. The limit helps avoid Billion Laughs attacks. |
This format accepts properties that provide instructions for writing output data.
| Parameter | Type | Default | Description |
|---|---|---|---|
|
|
|
Size of the buffer writer, in bytes. The value must be greater than |
|
|
|
Generates the output as a data stream when set to Valid values are |
|
|
|
The encoding to use for the output, such as UTF-8. |
|
|
|
Skips
Valid values are |
|
|
|
Indicates whether to write the header declaration or not. Valid values are |