Skip to main content
This plugin adheres to and is structured around OpenAPI version 3.0.3. Please contact our support team if you encounter compatibility issues with your OpenAPI version.
When embedding Flatfile, this plugin should be deployed in a server-side listener. Learn more

@flatfile/plugin-convert-openapi-schema

The @flatfile/plugin-convert-openapi-schema will automatically convert Open API to the Flatfile Blueprint, a powerful DDL (Data Definition Language) created by Flatfile with a focus on validation and data preparation.

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

Overview

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

Parameters

OpenAPISetupFactory
required
The setupFactory parameter holds the Workbook and Sheet configuration options and OpenAPI source.
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.

API Calls

  • api.spaces.update
  • api.workbooks.create

Imported NPM Packages

Usage

The @flatfile/plugin-convert-openapi-schema plugin simplifies the setup of new Flatfile Spaces by configuring the Space from a provided OpenAPI schema. Designed for server-side listeners, it auto-configures the Space using the supplied settings.
install
import
listener.js

Full Example

listener.js

See the code

@flatfile/plugin-convert-openapi-schema