[C++][Restbed-server] Compilation error from missing function call parameter
Created by: vbs96
Description
The following compilation error occurs when I'm trying to compile a Restbed server from the given specification:
/api/FrameApi.cpp:70:91: error: expected primary-expression before ‘)’ token
const bool includePictureBase64 = request->get_query_parameter("includePictureBase64", );
openapi-generator version
3.2.1(latest master branch with PR #752)
OpenAPI declaration file content or url
Command line used for generation
Inside cloned repository, after mvn clean package command:
java -jar modules/openapi-generator-cli/target/openapi-generator-cli.jar generate/
-i deep-viss.json /
-g cpp-restbed-server /
-o ../openapi-restbed-server
Steps to reproduce
Assuming Restbed is installed on local machine https://github.com/Corvusoft/restbed I used the following cmake file:
cmake_minimum_required(VERSION 3.10)
project(restbed_ex)
set(CMAKE_CXX_STANDARD 11)
file(GLOB_RECURSE src_files mode/*.cpp api/*.cpp)
add_executable(restbed_ex main.cpp ${src_files})
target_include_directories(restbed_ex PRIVATE /restbed/include/)
target_include_directories(restbed_ex PRIVATE model/)
target_include_directories(restbed_ex PRIVATE api/)
target_link_libraries(restbed_ex restbed)
1)Go to output folder 2)Make a dummy main.cpp (touch main.cpp) 3)mkdir build && cd build 4)cmake .. 5)make