Incepere creare procese separate
This commit is contained in:
@@ -6,6 +6,10 @@ const dirStructureModel = Joi.object({
|
||||
'string.empty': 'ID must not be empty',
|
||||
'string.guid': 'ID must be a valid GUID'
|
||||
}),
|
||||
ip: Joi.string().ip().required().messages({
|
||||
'string.ip': 'The IP address "{{#value}}" is not valid.',
|
||||
'any.required': 'IP address is required.'
|
||||
}),
|
||||
dir_config: Joi.string().required().messages({
|
||||
'any.required': 'Directory configuration is required',
|
||||
'string.empty': 'Directory configuration must not be empty'
|
||||
|
||||
@@ -5,6 +5,10 @@ const UserDepartmentPatchModel = Joi.object({
|
||||
'any.required': 'User ID is required',
|
||||
'string.empty': 'User ID must not be empty',
|
||||
'string.uuid': 'User ID must be a valid UUID'
|
||||
}),
|
||||
department: Joi.string().required().messages({
|
||||
'any.required': 'User ID is required',
|
||||
'string.empty': 'User ID must not be empty',
|
||||
})
|
||||
});
|
||||
|
||||
|
||||
@@ -16,10 +16,9 @@ const usersRegisterModel = Joi.object({
|
||||
'string.min': 'Password must be at least {#limit} characters long',
|
||||
'string.max': 'Password must be at most {#limit} characters long'
|
||||
}),
|
||||
department: Joi.string().uuid().required().messages({
|
||||
department: Joi.string().required().messages({
|
||||
'any.required': 'Department ID is required',
|
||||
'string.empty': 'Department ID must not be empty',
|
||||
'string.uuid': 'Department ID must be a valid UUID'
|
||||
'string.empty': 'Department ID must not be empty'
|
||||
})
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user