Files
windmill/cli/bootstrap/flow_bootstrap.ts
Guillaume Bouvignies 33788f6361 feat: add script bootstrap and script generate-metadata CLI commands (#3007)
* feat: add script bootstrap and script generate-metadata CLI commands

* Address PR comments on code
2024-01-16 18:25:51 +01:00

36 lines
800 B
TypeScript

import { SchemaProperty } from "./common.ts";
export interface FlowDefinition {
summary: string,
description: string,
value: {
modules: any[]
},
schema: {
$schema: string,
type: string,
order: string[],
properties: { [name: string]: SchemaProperty},
required: string[]
}
ws_error_handler_muted: false
}
export function defaultFlowDefinition(): FlowDefinition {
return {
summary: '',
description: '',
value: {
modules: []
},
schema: {
$schema: 'https://json-schema.org/draft/2020-12/schema',
type: 'object',
order: [],
properties: {},
required: []
},
ws_error_handler_muted: false,
}
}