Serialization IonToYaml

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.IonToYaml

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

Source file URI

DefaultUTF-8

The name of a supported charset

Reference (ref) of the pluginDefaults to apply to this task.

Default0

The number of records converted

Formaturi

URI of the output YAML file

Number of records converted