Archived
2

material numbers defined as string, colors without numbers can be added

This commit is contained in:
VLE2FE
2020-05-15 14:55:01 +02:00
parent abf0a99d8a
commit d2c7ec2368
6 changed files with 112 additions and 47 deletions

View File

@ -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()
}))
};