fixed devices ownership validation issue

error-msg-device-ownership
Thilina Sandaruwan 2 years ago
parent e4bc9f87f8
commit 3ff1f23a80

@ -185,12 +185,18 @@ public class RequestValidationUtil {
switch (ownership) {
case "BYOD":
case "COPE":
case "WORK_PROFILE":
case "GOOGLE_ENTERPRISE":
case "COSU":
case "FULLY_MANAGED":
case "DEDICATED_DEVICE":
return;
default:
throw new InputValidationException(
new ErrorResponse.ErrorResponseBuilder().setCode(400l).setMessage(
"Invalid ownership type received. " +
"Valid ownership types are BYOD | COPE").build());
"Valid ownership types are BYOD | COPE | WORK_PROFILE | GOOGLE_ENTERPRISE | " +
"COSU | FULLY_MANAGED | DEDICATED_DEVICE ").build());
}
}

Loading…
Cancel
Save