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 Jul 1, 2024
1 parent 14c2ca2 commit baa9ec4
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -754,9 +754,9 @@ public ArrayList<PatchOperation> decodeRequest(String scimResourceString) throws
//obtain the Operations values
JSONArray operationJsonList = (JSONArray) decodedJsonObj.opt(SCIMConstants.OperationalConstants.OPERATIONS);

//check if operationJsonList is null
// Check if operationJsonList is null.
if (operationJsonList == null) {
//check if operations field present in lowercase
// Check if operations field present in lowercase.
if (decodedJsonObj.has(StringUtils.lowerCase(SCIMConstants.OperationalConstants.OPERATIONS))) {
throw new BadRequestException("Invalid JSON schema.", ResponseCodeConstants.INVALID_SYNTAX);
}
Expand Down

0 comments on commit baa9ec4

Please sign in to comment.