notes
This commit is contained in:
@@ -93,10 +93,19 @@ const userProductSchema = Joi.object({
|
||||
Joi.object({
|
||||
id: Joi.number().optional(), // For frontend temporary IDs
|
||||
spreaderBrand: Joi.string().max(100).required(),
|
||||
spreaderModel: Joi.string().max(100).allow(null, '').optional(),
|
||||
spreaderModel: Joi.alternatives().try(
|
||||
Joi.string().max(100).allow(''),
|
||||
Joi.allow(null)
|
||||
).optional(),
|
||||
settingValue: Joi.string().max(20).required(),
|
||||
rateDescription: Joi.string().max(200).allow(null, '').optional(),
|
||||
notes: Joi.string().allow(null, '').optional()
|
||||
rateDescription: Joi.alternatives().try(
|
||||
Joi.string().max(200).allow(''),
|
||||
Joi.allow(null)
|
||||
).optional(),
|
||||
notes: Joi.alternatives().try(
|
||||
Joi.string().allow(''),
|
||||
Joi.allow(null)
|
||||
).optional()
|
||||
})
|
||||
).optional()
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user