Skip to content

Commit 5ff6f52

Browse files
Update modules/openapi-generator/src/main/java/org/openapitools/codegen/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 <[email protected]>
1 parent 00861fb commit 5ff6f52

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/RustServerCodegen.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -737,7 +737,7 @@ public CodegenOperation fromOperation(String path, String httpMethod, Operation
737737
String vendorExtensionPath = op.path.replace("{", ":").replace("}", "");
738738
op.vendorExtensions.put("x-path",vendorExtensionPath);
739739
op.vendorExtensions.put("x-path-id", pathId);
740-
op.vendorExtensions.put("x-has-path-params", !op.pathParams.isEmpty());
740+
op.vendorExtensions.put("x-has-path-params", hasPathParams);
741741
op.vendorExtensions.put("x-path-format-string", formatPath);
742742

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

0 commit comments

Comments
 (0)