data-validation-proximity 1.1.1 → 1.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.js +2 -1
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -200,13 +200,14 @@ const validRoles = ['user', 'admin', 'seller', 'paymentManager', 'manager', 'Sup
|
|
|
200
200
|
|
|
201
201
|
const userSchema = joi.object({
|
|
202
202
|
email: joi.string().email(),
|
|
203
|
-
phone: joi.string(),
|
|
203
|
+
phone: joi.string().allow(''),
|
|
204
204
|
username: joi.string().min(5).required(),
|
|
205
205
|
password: joi.string().min(6).required(),
|
|
206
206
|
password_confirmation: joi.string().min(6).required(),
|
|
207
207
|
role: joi.string().valid(...validRoles).required(),
|
|
208
208
|
cart: joi.string().allow(null).allow(''),
|
|
209
209
|
google: joi.boolean(),
|
|
210
|
+
profileImage: joi.string(),
|
|
210
211
|
});
|
|
211
212
|
|
|
212
213
|
exports.userSchemaValidation = createValidationMiddleware(userSchema);
|