You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A simple query with a simple response (string) does not compile.
The generated code shows a miscalled method that does not exist (std::string::fromJson)
The compilation error looks like :
/home/xxxx/dev/amf/impl-ms1/src/client/client-ms2/gen-cpp/api/Stair1Api.cpp: In lambda function:
/home/xxxx/dev/amf/impl-ms1/src/client/client-ms2/gen-cpp/api/Stair1Api.cpp:161:27: error: base operand of ‘->’ has non-pointer type ‘utility::string_t {aka std::__cxx11::basic_string<char>}’
localVarResult->fromJson(localVarJson);
^
CMakeFiles/client-ms2.dir/build.make:254: recipe for target 'CMakeFiles/client-ms2.dir/api/Stair1Api.cpp.o' failed
make[3]: *** [CMakeFiles/client-ms2.dir/api/Stair1Api.cpp.o] Error 1
Description
A simple query with a simple response (string) does not compile.
The generated code shows a miscalled method that does not exist (std::string::fromJson)
The compilation error looks like :
openapi-generator version
Current master 3.3.0-SNAPSHOT
OpenAPI declaration file content or url
Command line used for generation
Generate :
Compile :
Steps to reproduce
Generate & Compile
Related issues/PRs
Suggest a fix/enhancement
Wrong code is located in Stair1Api::checkGeneration method :
The called method should probably be :
The text was updated successfully, but these errors were encountered: