users - phone numbers - accept null or empty string as well
MODIFY
src/assets/schemas/user/user.json
src/assets/schemas/user/user.json
"mobile": {
"type": "string",
"sanitize": "mongo",
- "pattern": "^\\+?([0-9] ?){9,14}[0-9]$"
+ "pattern": "^|\\+?([0-9] ?){9,14}[0-9]$",
+ "nullable": true
},
"locale": {
"type": "string",
"phone": {
"type": "string",
"sanitize": "mongo",
- "pattern": "^\\+?([0-9] ?){9,14}[0-9]$"
+ "pattern": "^|\\+?([0-9] ?){9,14}[0-9]$",
+ "nullable": true
},
"issuer": {
"type": "boolean",

users - phone numbers - accept null or empty string as well (#3517)