material numbers defined as string, colors without numbers can be added
This commit is contained in:
@ -33,8 +33,9 @@ export default class MaterialValidate { // validate input for material
|
||||
color: joi.string()
|
||||
.max(128)
|
||||
.required(),
|
||||
number: joi.number()
|
||||
.min(0)
|
||||
number: joi.string()
|
||||
.max(128)
|
||||
.allow('')
|
||||
.required()
|
||||
}))
|
||||
};
|
||||
|
Reference in New Issue
Block a user