frontend / api/inventory / editItemSchema
Variable: editItemSchema
consteditItemSchema:ZodObject<{itemId:ZodString;newName:ZodString; },$strip>
Defined in: src/pages/inventory/validation/inventoryValidation.ts:75
Schema for editing item names. Used in edit item dialogs.
Validation
- itemId: Required, identifies which item to update
- newName: Must not be empty, should be different from current name
Note
Backend validates that the new name is not a duplicate for the same supplier
Note
Only ADMIN users can change item names