Skip to content

Commit 8d5051a

Browse files
committed
fix the generator
1 parent 7f1f8af commit 8d5051a

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

generators/src/main/java/com/algolia/codegen/AlgoliaJavascriptGenerator.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,7 @@ public OperationsMap postProcessOperationsWithModels(OperationsMap objs, List<Mo
233233
// We only wrap if there is a mix between body parameters and other parameters.
234234
for (CodegenOperation ope : operations) {
235235
// Nothing to wrap as there is no parameters
236-
if (!ope.hasParams) {
236+
if (!ope.getHasParams()) {
237237
continue;
238238
}
239239

generators/src/main/java/com/algolia/codegen/cts/tests/Snippet.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ public void addMethodCall(Map<String, Object> context, ParametersWithDataType pa
5555
context.put("isGeneric", (boolean) ope.vendorExtensions.getOrDefault("x-is-generic", false));
5656
context.put("isCustomRequest", Helpers.CUSTOM_METHODS.contains(ope.operationIdOriginal));
5757
context.put("isAsyncMethod", (boolean) ope.vendorExtensions.getOrDefault("x-asynchronous-helper", true));
58-
context.put("hasParams", ope.hasParams);
58+
context.put("hasParams", ope.getHasParams());
5959
context.put("isHelper", (boolean) ope.vendorExtensions.getOrDefault("x-helper", false));
6060
context.put("hasRequestOptions", requestOptions != null);
6161

generators/src/main/java/com/algolia/codegen/cts/tests/TestsClient.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ public void run(Map<String, CodegenModel> models, Map<String, CodegenOperation>
137137

138138
stepOut.put("stepTemplate", "tests/client/method.mustache");
139139
stepOut.put("isMethod", true); // TODO: remove once kotlin is converted
140-
stepOut.put("hasParams", ope.hasParams);
140+
stepOut.put("hasParams", ope.getHasParams());
141141
stepOut.put("isGeneric", (boolean) ope.vendorExtensions.getOrDefault("x-is-generic", false));
142142
if (ope.returnType != null && ope.returnType.length() > 0) {
143143
stepOut.put("returnType", Helpers.toPascalCase(ope.returnType));

generators/src/main/java/com/algolia/codegen/cts/tests/TestsRequest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ public void run(Map<String, CodegenModel> models, Map<String, CodegenOperation>
158158

159159
test.put("request", req.request);
160160
test.put("isAsyncMethod", true);
161-
test.put("hasParams", ope.hasParams);
161+
test.put("hasParams", ope.getHasParams());
162162
test.put("isHelper", isHelper);
163163

164164
addRequestOptions(paramsType, req.requestOptions, test);

0 commit comments

Comments
 (0)