budibase/packages/server/src/schemas/index.js

38 lines
726 B
JavaScript
Raw Normal View History

2020-05-20 18:02:46 +02:00
const WORKFLOW_SCHEMA = {
properties: {
type: "workflow",
pageId: {
type: "string"
},
screenId: {
type: "string"
},
live: {
type: "boolean"
},
uiTree: {
type: "object"
},
definition: {
type: "object",
properties: {
triggers: { type: "array" },
next: {
type: "object",
properties: {
type: { type: "string" },
actionId: { type: "string" },
args: { type: "object" },
conditions: { type: "array" },
errorHandling: { type: "object" },
next: { type: "object" }
}
},
}
}
}
};
module.exports = {
WORKFLOW_SCHEMA
};