Skip to main content
When embedding Flatfile, this plugin should be deployed in a server-side listener. Learn more

@flatfile/plugin-convert-yaml-schema

The @flatfile/plugin-convert-yaml-schema plugin converts YAML schema to Flatfile Blueprint.

Event Type:
listener.on('space:configure')

Overview

This plugin will automatically convert Yaml Schema to the Flatfile Blueprint, a powerful DDL (Data Definition Language) created by Flatfile with a focus on validation and data preparation.

Parameters

ModelToSheetConfig[]
required
The models parameter holds the YAML Schema sourceUrl and take other Sheet configuration options.
PartialWorkbookConfig
The options.workbookConfig parameter takes other optional Workbook configurations.
boolean
The options.debug parameter lets you toggle on/off helpful debugging messages for development purposes.
function
The callback parameter receives three arguments: event, workbookIds, and a tick function. The tick function can be used to update the Job’s progress. The callback function is invoked once the Space and Workbooks are fully configured.

Imported NPM Packages

Basic Example

listener.js

Advanced Example

listener.js