Skip to content

Commit

Permalink
core: fix unknown query parameter, #TASK-4768, #TASK-4761
Browse files Browse the repository at this point in the history
  • Loading branch information
jtarraga committed Sep 6, 2023
1 parent 577f541 commit dd037a7
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,9 @@ public void updateParams(Map<String, String> uriParams) {
annotations = getAnnotations();

try {
validateParams(uriParams, classAttributesToType, annotations);
// Skip this validation because some CellBase endpoint URL parameters are not included
// in the query (such as GeneQuery, VariantQuery,...)
//validateParams(uriParams, classAttributesToType, annotations);

Map<String, Object> objectHashMap = new HashMap<>();
for (Map.Entry<String, Class<?>> entry : classAttributesToType.entrySet()) {
Expand Down Expand Up @@ -175,7 +177,7 @@ public void updateParams(Map<String, String> uriParams) {
}
}
objectMapper.updateValue(this, objectHashMap);
} catch (JsonProcessingException | QueryException e) {
} catch (JsonProcessingException e) { // | QueryException e) {
throw new IllegalArgumentException(e);
}
}
Expand Down

0 comments on commit dd037a7

Please sign in to comment.