fix: make flow.name required with 1 minimum length

This commit is contained in:
Ali BARIN
2022-08-08 19:44:02 +02:00
parent e0a76ea918
commit a1b360a172

View File

@@ -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' },
},