[BUG] [Rust Server] Generated code with yaml multi tag compile error.
Created by: paladinzh
Bug Report Checklist
-
Have you provided a full/minimal spec to reproduce the issue? -
Have you validated the input using an OpenAPI validator (example)? -
What's the version of OpenAPI Generator used? -
Have you search for related issues/PRs? -
What's the actual output vs expected output? -
[Optional] Bounty to sponsor the fix (example)
Description
Multi tag will generate repeating function, cause compile error.
openapi-generator version
3.0.2
OpenAPI declaration file content or url
##//modules/openapi-generator/src/test/resources/3_0/rust-server/openapi-v3.yaml /repos/{repoId}: parameters: - in: path name: repoId schema: type: string required: true get: tags: [Repo, Info] operationId: GetRepoInfo
Command line used for generation
bin/rust-server-petstore.sh
Steps to reproduce
Compile the generated code, and you will get the error
Related issues/PRs
No
Suggest a fix
only generate operation for the first tag