Skip to content

Commit

Permalink
Merge pull request #76 from cmgrote/master
Browse files Browse the repository at this point in the history
Allow include_relationships parameter to be optional
  • Loading branch information
cmgrote committed Feb 12, 2021
2 parents 84ef985 + 80cf95b commit 81e0612
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion java/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@
<reactor-version>3.4.2</reactor-version>
<reactor-netty-version>1.0.3</reactor-netty-version>
<reactor-netty-ipc-version>0.7.15.RELEASE</reactor-netty-ipc-version>
<netty-version>4.1.58.Final</netty-version>
<netty-version>4.1.59.Final</netty-version>
<testng.version>7.3.0</testng.version>
<mock-server.version>5.11.2</mock-server.version>
</properties>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -400,7 +400,7 @@ public Mono<Category> get(@NonNull String guid,
*/
public Mono<Category> get(@NonNull String guid,
String runAsTenant,
boolean includeRelationships) throws RestClientException {
Boolean includeRelationships) throws RestClientException {

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

queryParams.putAll(apiClient.parameterToMultiValueMap(null, "include_relationships", includeRelationships));
if (includeRelationships != null) {
queryParams.putAll(apiClient.parameterToMultiValueMap(null, "include_relationships", includeRelationships));
}

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

0 comments on commit 81e0612

Please sign in to comment.