product updates
This commit is contained in:
@@ -76,11 +76,11 @@ const productRateSchema = Joi.object({
|
||||
});
|
||||
|
||||
const userProductSchema = Joi.object({
|
||||
productId: Joi.number().integer().positive(),
|
||||
customName: Joi.string().max(255),
|
||||
customRateAmount: Joi.number().positive(),
|
||||
customRateUnit: Joi.string().max(50),
|
||||
notes: Joi.string()
|
||||
productId: Joi.number().integer().positive().allow(null).optional(),
|
||||
customName: Joi.string().max(255).allow(null).optional(),
|
||||
customRateAmount: Joi.number().positive().allow(null).optional(),
|
||||
customRateUnit: Joi.string().max(50).allow(null).optional(),
|
||||
notes: Joi.string().allow(null, '').optional()
|
||||
});
|
||||
|
||||
// Application validation schemas
|
||||
|
||||
Reference in New Issue
Block a user