
Serialization IonToYaml
CertifiedConvert an Ion file to the YAML format
Serialization IonToYaml
Certified
Convert an Ion file to the YAML format
A single Ion record is written as a plain YAML document; multiple records are written as a multi-document YAML stream separated by --- markers.
yaml
type: io.kestra.plugin.serdes.yaml.IonToYamlExamples
Download a CSV file and convert it to YAML format.
yaml
id: ion_to_yaml
namespace: company.team
tasks:
- id: http_download
type: io.kestra.plugin.core.http.Download
uri: https://huggingface.co/datasets/kestra/datasets/raw/main/csv/products.csv
- id: convert
type: io.kestra.plugin.serdes.csv.CsvToIon
from: "{{ outputs.http_download.uri }}"
- id: to_yaml
type: io.kestra.plugin.serdes.yaml.IonToYaml
from: "{{ outputs.convert.uri }}"
Properties
from *Requiredstring
Source file URI
Pebble expression referencing an Internal Storage URI e.g. {{ outputs.mytask.uri }}.
charset string
Default
UTF-8The name of a supported charset
Outputs
size integer
Default
0The number of records converted
uri string
Format
uriURI of the output YAML file
Metrics
records counter
Number of records converted