Skip to content

Commit

Permalink
Update modules/openapi-generator/src/main/java/org/openapitools/codeg…
Browse files Browse the repository at this point in the history
…en/languages/RustServerCodegen.java


Before we were adding hasPathParams twice, once with !op.pathParams.isEmpty(), and then again with hasPathParams. This was probably caused by a mistaken merge.

This is causing the difference in samples

Co-authored-by: Richard Whitehouse <richard.whitehouse@metaswitch.com>
  • Loading branch information
jimschubert and richardwhiuk authored May 8, 2020
1 parent 6029104 commit c8805ce
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -736,7 +736,7 @@ public CodegenOperation fromOperation(String path, String httpMethod, Operation
String vendorExtensionPath = op.path.replace("{", ":").replace("}", "");
op.vendorExtensions.put("x-path",vendorExtensionPath);
op.vendorExtensions.put("x-path-id", pathId);
op.vendorExtensions.put("x-has-path-params", !op.pathParams.isEmpty());
op.vendorExtensions.put("x-has-path-params", hasPathParams);
op.vendorExtensions.put("x-path-format-string", formatPath);

String vendorExtensionHttpMethod = op.httpMethod.toUpperCase(Locale.ROOT);
Expand Down

0 comments on commit c8805ce

Please sign in to comment.