scheduler command max 300

This commit is contained in:
proddy
2024-07-20 11:44:31 +02:00
parent ac27096087
commit 27eb56aee8

View File

@@ -308,7 +308,7 @@ export const schedulerItemValidation = (
{ {
type: 'string', type: 'string',
pattern: /^[a-zA-Z0-9_\\.]{0,19}$/, pattern: /^[a-zA-Z0-9_\\.]{0,19}$/,
message: "Must be <20 characters: alpha numeric, '_' or '.'" message: "Must be <20 characters: alphanumeric, '_' or '.'"
}, },
...[uniqueNameValidator(schedule, scheduleItem.o_name)] ...[uniqueNameValidator(schedule, scheduleItem.o_name)]
], ],
@@ -317,8 +317,8 @@ export const schedulerItemValidation = (
{ {
type: 'string', type: 'string',
min: 1, min: 1,
max: 64, max: 300,
message: 'Command must be 1-64 characters' message: 'Command must be 1-300 characters'
} }
] ]
}); });
@@ -350,7 +350,7 @@ export const entityItemValidation = (entity: EntityItem[], entityItem: EntityIte
{ {
type: 'string', type: 'string',
pattern: /^[a-zA-Z0-9_\\.]{1,19}$/, pattern: /^[a-zA-Z0-9_\\.]{1,19}$/,
message: "Must be <20 characters: alpha numeric, '_' or '.'" message: "Must be <20 characters: alphanumeric, '_' or '.'"
}, },
...[uniqueCustomNameValidator(entity, entityItem.o_name)] ...[uniqueCustomNameValidator(entity, entityItem.o_name)]
], ],
@@ -404,7 +404,7 @@ export const temperatureSensorItemValidation = (sensors: TemperatureSensor[]) =>
{ {
type: 'string', type: 'string',
pattern: /^[a-zA-Z0-9_\\.]{0,19}$/, pattern: /^[a-zA-Z0-9_\\.]{0,19}$/,
message: "Must be <20 characters: alpha numeric, '_' or '.'" message: "Must be <20 characters: alphanumeric, '_' or '.'"
}, },
...[uniqueTemperatureNameValidator(sensors)] ...[uniqueTemperatureNameValidator(sensors)]
] ]
@@ -444,7 +444,7 @@ export const analogSensorItemValidation = (
{ {
type: 'string', type: 'string',
pattern: /^[a-zA-Z0-9_\\.]{0,19}$/, pattern: /^[a-zA-Z0-9_\\.]{0,19}$/,
message: "Must be <20 characters: alpha numeric, '_' or '.'" message: "Must be <20 characters: alphanumeric, '_' or '.'"
}, },
...[uniqueAnalogNameValidator(sensors)] ...[uniqueAnalogNameValidator(sensors)]
], ],