[BUG] [C++] [cpp-pistache-server] Generated code does not compile because of a missing semicolon
Created by: shayan-eftekhari
Bug Report Checklist
-
Have you provided a full/minimal spec to reproduce the issue? -
Have you validated the input using an OpenAPI validator (example)? -
Have you tested with the latest master to confirm the issue still exists? -
Have you searched for related issues/PRs? -
What's the actual output vs expected output? -
[Optional] Sponsorship to speed up the bug fix or feature request (example)
Description
A recent pull request in the pistache repository introduced a statement in which a semicolon is missed.
openapi-generator version
openapi-generator-cli 5.2.1-SNAPSHOT commit : d0788cdb built : 2021-08-10T22:22:08+02:00
OpenAPI declaration file content or url
https://github.com/OAI/OpenAPI-Specification/blob/main/examples/v3.0/petstore.yaml
Generation Details
java -jar modules/openapi-generator-cli/target/openapi-generator-cli.jar generate -g cpp-pistache-server -i ./petstore.yaml -o petstore
Steps to reproduce
- Clone and build latest master
- Generate any cpp-pistache-server
- Run cmake build
Related issues/PRs
N/A
Suggest a fix
Add a semicolon to the following line will fix the issue: https://github.com/OpenAPITools/openapi-generator/blob/bd8efe2f91761df866489c16e1c17870a8c88c5f/modules/openapi-generator/src/main/resources/cpp-pistache-server/api-source.mustache#L45