american:
- Boston Red Sox
- Detroit Tigers
- New York Yankees
national:
- New York Mets
- Chicago Cubs
- Atlanta Braves
YAML Format
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
Example: Represent YAML in the DataWeave Format (dw)
This example shows how DataWeave represents YAML values.
Input
The following YAML snippet serves as the input payload for the DataWeave source in this example.
Configuration Properties
DataWeave supports the following configuration properties for this format.
Reader Properties
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. |
Writer Properties
This format accepts properties that provide instructions for writing output data.
Parameter | Type | Default | Description |
---|---|---|---|
|
|
|
Size of the buffer writer. |
|
|
|
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 |