diff --git a/packages/backend/src/models/flow.ts b/packages/backend/src/models/flow.ts index 458175d6..2cfdb8bc 100644 --- a/packages/backend/src/models/flow.ts +++ b/packages/backend/src/models/flow.ts @@ -16,10 +16,11 @@ class Flow extends Base { static jsonSchema = { type: 'object', + required: ['name'], properties: { id: { type: 'string', format: 'uuid' }, - name: { type: 'string' }, + name: { type: 'string', minLength: 1 }, userId: { type: 'string', format: 'uuid' }, active: { type: 'boolean' }, },