From 1040e4fb8c1328f7503b972d02ca2803b6c1afad Mon Sep 17 00:00:00 2001 From: proddy Date: Sun, 1 Sep 2024 12:29:38 +0200 Subject: [PATCH] add validation for # bytes in RAW --- interface/src/app/main/validators.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/interface/src/app/main/validators.ts b/interface/src/app/main/validators.ts index 520dbcbdb..eca7f23dc 100644 --- a/interface/src/app/main/validators.ts +++ b/interface/src/app/main/validators.ts @@ -381,6 +381,10 @@ export const entityItemValidation = (entity: EntityItem[], entityItem: EntityIte offset: [ { required: true, message: 'Offset is required' }, { type: 'number', min: 0, max: 255, message: 'Must be between 0 and 255' } + ], + factor: [ + { required: true, message: 'Bytes is required' }, + { type: 'number', min: 1, max: 255, message: 'Must be between 1 and 255' } ] });