Skip to content

Commit

Permalink
Update the comments.
Browse files Browse the repository at this point in the history
  • Loading branch information
Malith-19 committed Jun 28, 2024
1 parent 78a8572 commit be0c9f7
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -756,12 +756,11 @@ public ArrayList<PatchOperation> decodeRequest(String scimResourceString) throws
//check if operationJsonList is null
if (operationJsonList == null) {

//throw appropriate exception based on the key check
//check if operations field present in lowercase
if (decodedJsonObj.has(StringUtils.lowerCase(SCIMConstants.OperationalConstants.OPERATIONS))) {
throw new BadRequestException("Invalid JSON schema.", ResponseCodeConstants.INVALID_SYNTAX);
}

//if the key with lowercase name does not exist, throw this exception
throw new BadRequestException(ResponseCodeConstants.INVALID_SYNTAX);
}

Expand Down

0 comments on commit be0c9f7

Please sign in to comment.