When embedding Flatfile, this plugin should be deployed in a server-side
listener. Learn more
@flatfile/plugin-convert-json-schema
The @flatfile/plugin-convert-json-schema plugin will automatically convert JSON Schema to the Flatfile Blueprint, a powerful DDL (Data Definition Language) created by Flatfile with a focus on validation and data preparation, and configure a Flatfile Space using the Blueprint.
Event Type:
Event Type:
listener.on('space:configure')
Parameters
The
setupFactory
parameter holds the Workbook and Sheet configuration
options and JSON Schema source.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.API Calls
api.spaces.update
api.workbooks.create
Imported NPM Packages
@flatfile/api@1.5.37+
@flatfile/plugin-space-configure@0.1.6+
@hyperjump/json-schema@1.6.4+
axios@1.5.1+
Usage
The @flatfile/plugin-convert-json-schema plugin simplifies the setup of new Flatfile Spaces by configuring the Space from a provided JSON Schema. Designed for server-side listeners, it auto-configures the Space using the supplied settings.install
import
Full Example
listener.ts