optional solution error code
This commit is contained in:
@@ -31,11 +31,12 @@ const insertErrorCodeSchema = Joi.object({
|
||||
is_active: Joi.boolean().default(true),
|
||||
solution: Joi.array()
|
||||
.items(solutionSchema)
|
||||
.min(1)
|
||||
.required()
|
||||
.messages({
|
||||
"array.min": "Error code must have at least 1 solution",
|
||||
}),
|
||||
.optional(),
|
||||
// .min(1)
|
||||
// .required()
|
||||
// .messages({
|
||||
// "array.min": "Error code must have at least 1 solution",
|
||||
// }),
|
||||
spareparts: Joi.array()
|
||||
.items(Joi.number().integer())
|
||||
.optional(),
|
||||
|
||||
Reference in New Issue
Block a user