@prismatic-io/spectral
Version:
Utility library for building Prismatic connectors and code-native integrations
28 lines (27 loc) • 775 B
TypeScript
interface FlowSchemaProperty {
description: string;
type: string;
}
export declare const DEFAULT_JSON_SCHEMA_VERSION = "https://json-schema.org/draft/2020-12/schema";
/** Flow definition schemas require fewer fields than the actual FlowSchema
* type, since they can be populated in the convert layer. */
export type FlowDefinitionFlowSchema = {
title?: string;
$comment?: string;
$schema?: string;
properties: Record<string, FlowSchemaProperty>;
};
export interface FlowSchema {
title: string;
$comment?: string;
$schema: string;
type: string;
properties: Record<string, FlowSchemaProperty>;
}
export interface FlowSchemas {
[key: string]: {
invoke: FlowSchema;
[key: string]: FlowSchema;
};
}
export {};