OutputSpec
Describes the output format when transforming from one file format to another
formatFileFormat (string)required
Supported file formats
Possible values: [CSV, FIXED_WIDTH, XML, JSON, NACHA, ISO20022, SWIFT_MT, DELIMITED, CUSTOM]
Example:
DELIMITEDdelimiterstring
Field delimiter for delimited output formats
Example:
,encodingstring
Default value:
UTF-8Example:
UTF-8hasHeaderboolean
Whether to write a header row
Default value:
falsefieldMappings object[]
Field-level mapping and transformation rules
Array [
sourceFieldstringrequired
Name of the field in the input spec
Example:
account_numbertargetFieldstringrequired
Name of the field in the output spec
Example:
accountNotransformationstring
Optional SpEL expression to transform the value
Example:
#value.substring(0, 9)]
OutputSpec
{
"format": "DELIMITED",
"delimiter": ",",
"encoding": "UTF-8",
"hasHeader": false,
"fieldMappings": [
{
"sourceField": "account_number",
"targetField": "accountNo",
"transformation": "#value.substring(0, 9)"
}
]
}