IonToYaml
Convert an ION file into YAML format.
yaml
type: "io.kestra.plugin.serdes.yaml.IonToYaml"Examples
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
uri string
Format
uriMetrics
records counter
Number of records converted