Add default values in Rest schema
Allow update mobile data if no mobileToken
MODIFY
src/assets/server/rest/v1/schemas/user/user-mobile-data-update.json
src/assets/server/rest/v1/schemas/user/user-mobile-data-update.json
"$ref": "user#/definitions/id"
},
"mobileToken": {
- "$ref": "user#/definitions/mobileToken"
+ "$ref": "user#/definitions/mobileToken",
+ "default": ""
},
"mobileOS": {
"$ref": "user#/definitions/mobileOS"
},
"mobileBundleID": {
- "$ref": "user#/definitions/mobileBundleID"
+ "$ref": "user#/definitions/mobileBundleID",
+ "default": ""
},
"mobileAppName": {
- "$ref": "user#/definitions/mobileAppName"
+ "$ref": "user#/definitions/mobileAppName",
+ "default": ""
},
"mobileVersion": {
- "$ref": "user#/definitions/mobileVersion"
+ "$ref": "user#/definitions/mobileVersion",
+ "default": ""
}
},
"required": [
- "id",
- "mobileToken"
+ "id"
]
}

Add default values in Rest schema
Allow update mobile data if no mobileToken