Skip to content

Commit 046c971

Browse files
committed
Allow the include_relationships parameter to be optional, as it appears it may cause issues on some versions of WKC
Signed-off-by: Christopher Grote <[email protected]>
1 parent 84ef985 commit 046c971

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

java/src/main/java/com/ibm/watson/data/client/api/CategoriesApiV3.java

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -400,7 +400,7 @@ public Mono<Category> get(@NonNull String guid,
400400
*/
401401
public Mono<Category> get(@NonNull String guid,
402402
String runAsTenant,
403-
boolean includeRelationships) throws RestClientException {
403+
Boolean includeRelationships) throws RestClientException {
404404

405405
// create path and map variables
406406
final Map<String, Object> pathParams = new HashMap<>();
@@ -412,7 +412,9 @@ public Mono<Category> get(@NonNull String guid,
412412
final MultiValueMap<String, String> cookieParams = new LinkedMultiValueMap<>();
413413
final MultiValueMap<String, Object> formParams = new LinkedMultiValueMap<>();
414414

415-
queryParams.putAll(apiClient.parameterToMultiValueMap(null, "include_relationships", includeRelationships));
415+
if (includeRelationships != null) {
416+
queryParams.putAll(apiClient.parameterToMultiValueMap(null, "include_relationships", includeRelationships));
417+
}
416418

417419
if (runAsTenant != null)
418420
headerParams.add("Run-As-Tenant", apiClient.parameterToString(runAsTenant));

0 commit comments

Comments
 (0)